You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you add a bit more feature parity in these interfaces? E.g. a way to specify the hashkey for @ttl_cache and/or a way to specify a ttl for @cached. Cheers.
The text was updated successfully, but these errors were encountered:
The cachetools.func decorators are there to mimic the standard library functools.lru_cache, mostly to provide some sort of migration path. So no, sorry, you're limited to typed=True or typed=False regarding choice of hash key, to keep it simple.
Thanks for your work on this clean and cool library!
I like being able to specify the hash key with
I also like the
cachetool.func
conveniences such asCould you add a bit more feature parity in these interfaces? E.g. a way to specify the hashkey for
@ttl_cache
and/or a way to specify a ttl for@cached
. Cheers.The text was updated successfully, but these errors were encountered: