# MemcachedCache

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/cache/MemcachedCache)

Cache that uses Memcached backend through pymemcache client lib

## Signature

```python
MemcachedCache(
    self,
    client_: Any,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `client_` | `str` | Yes | An instance of any of pymemcache's Clients (Client, PooledClient, HashClient) |

## Extends

- `BaseCache`

## Constructors

```python
__init__(
    self,
    client_: Any,
)
```

| Name | Type |
|------|------|
| `client_` | `Any` |


## Properties

- `client`

## Methods

- [`lookup()`](https://reference.langchain.com/python/langchain-community/cache/MemcachedCache/lookup)
- [`update()`](https://reference.langchain.com/python/langchain-community/cache/MemcachedCache/update)
- [`clear()`](https://reference.langchain.com/python/langchain-community/cache/MemcachedCache/clear)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/cache.py#L2280)