dogpile.cache icon indicating copy to clipboard operation
dogpile.cache copied to clipboard

dogpile.cache is a Python caching API which provides a generic interface to caching backends of any variety

Results 49 dogpile.cache issues
Sort by recently updated
recently updated
newest added

**Migrated issue, originally created by Wichert Akkerman ([wichert](https://github.com/wichert))** It would be practical if there was a way to detect that data was returned from the cache and then do some...

feature

**Migrated issue, originally created by s ([sontek](https://github.com/sontek))** Right now if the code that calls configure on a region gets hit by multiple threads, the 2nd one will fail. We should...

bug

We established a cache using the redis backend and used the [front-end](https://dogpilecache.sqlalchemy.org/en/latest/usage.html#using-a-region:~:text=The%20CacheRegion%20object%20is%20our%20front%2Dend%20interface%20to%20a%20cache.) to explicitly define keys using... `CacheRegion.set(key: str, value: Any)` If a region does not have a key set...

Can someone please either confirm or refute my understanding: unless I specify the `arguments.memcached_expire_time` config option, the keys/values never actually expire in the Memcached itself. It's just that Dogpile considers...

https://github.com/sqlalchemy/dogpile.cache/blob/fa090bef0efd4efc350bc85f5b7f3c085c812384/dogpile/cache/backends/redis.py#L9 i will generate the PR if someone can confirm

dogpile.cache.api defines `KeyType: str` https://github.com/sqlalchemy/dogpile.cache/blob/main/dogpile/cache/api.py#L44-L45 Redis offers a hash/dict mapping for storage, which is accessible using the `.hmget`/`.hmset` methods from redis-py. The current backends do not support this, but third-party/developer...

```python from dogpile.cache import make_region TIMEOUT_SECONDS = 10 * 60 def my_key_generator(namespace, fn): fname = fn.__name__ def generate_key(*arg): # generate a key template: # "fname_%d_arg1_arg2_arg3..." # key_template = fname +...

Is there any way to get all the cached functions of a region?

Hi there! This PR adds the possibility to use a function's full qualified name while building the cache key, an attribute that has been available since python 3.3 so it...