Sohang Gandhi

Results 7 comments of Sohang Gandhi

Here is how we set up the backends: `redis_backend = cache.setup(` ` redis_url,` ` client_name=None,` ` suppress=False,` ` client_side=False,` ` middlewares=(add_prefix(f"{build_stamp}:"),),` `)` `mem_backend = cache.setup(` ` "mem://?check_interval=10&size=100000", prefix="mem:", suppress=False, enable=enable_in_memory_cache`...

Update: Looks like if we do `mem_backend = cache.setup(` ` "mem://?check_interval=10&size=100000", prefix="early:v2:mem:", suppress=False, enable=enable_in_memory_cache` `)` It works. Looks like this prefix appending causes us to have to remember to add...

Seems like we can use set methods along side early caching. Here is a test example: `foo_key = "foo:{id}" async def set_foo_by_id(): await cache.set_many( {("early:v2" + foo_key.format(id=id)): str(id) for id...

@Krukov thanks for getting back to us. We already tried as you suggest but even with prefix="", the prefix "v2:" is still added. So doesn't fix the issue.

@Krukov the other thing we need is to be able to set keys with early caching. It doesn’t work now because early caching stores some additional structure with the values.

We have both an api to fetch resource by key and in batch. When we fetch by batch we want to store each individual value in the batch according to...