# CacheEntry

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/prompt_cache/CacheEntry)

A single cache entry with metadata for TTL tracking.

## Signature

```python
CacheEntry(
    self,
    value: Any,
    created_at: float,
    refresh_func: Optional[Callable[[], Any]] = None,
)
```

## Constructors

```python
__init__(
    self,
    value: Any,
    created_at: float,
    refresh_func: Optional[Callable[[], Any]] = None,
) -> None
```

| Name | Type |
|------|------|
| `value` | `Any` |
| `created_at` | `float` |
| `refresh_func` | `Optional[Callable[[], Any]]` |


## Properties

- `value`
- `created_at`
- `refresh_func`

## Methods

- [`is_stale()`](https://reference.langchain.com/python/langsmith/prompt_cache/CacheEntry/is_stale)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/ce9e9e8973442b33e98ec3ce1b9c2dd3f58a43a7/python/langsmith/prompt_cache.py#L33)