# UpstashRedisByteStore

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/storage/upstash_redis/UpstashRedisByteStore)

BaseStore implementation using Upstash Redis
as the underlying store to store raw bytes.

## Signature

```python
UpstashRedisByteStore(
    self,
    *,
    client: Any = None,
    url: Optional[str] = None,
    token: Optional[str] = None,
    ttl: Optional[int] = None,
    namespace: Optional[str] = None,
)
```

## Extends

- `ByteStore`

## Constructors

```python
__init__(
    self,
    *,
    client: Any = None,
    url: Optional[str] = None,
    token: Optional[str] = None,
    ttl: Optional[int] = None,
    namespace: Optional[str] = None,
) -> None
```

| Name | Type |
|------|------|
| `client` | `Any` |
| `url` | `Optional[str]` |
| `token` | `Optional[str]` |
| `ttl` | `Optional[int]` |
| `namespace` | `Optional[str]` |


## Properties

- `underlying_store`

## Methods

- [`mget()`](https://reference.langchain.com/python/langchain-community/storage/upstash_redis/UpstashRedisByteStore/mget)
- [`mset()`](https://reference.langchain.com/python/langchain-community/storage/upstash_redis/UpstashRedisByteStore/mset)
- [`mdelete()`](https://reference.langchain.com/python/langchain-community/storage/upstash_redis/UpstashRedisByteStore/mdelete)
- [`yield_keys()`](https://reference.langchain.com/python/langchain-community/storage/upstash_redis/UpstashRedisByteStore/yield_keys)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/storage/upstash_redis.py#L133)