Open zyz954489346 opened 9 months ago
Hi, you can setup different namespaces with mongodb in different databases, that should solve having too many keys in the same collection. Just name the databases like cache1_db
, cache2_db
and so on... You can set the db name in the connection url.
For the custom namespace of the decorator, providing a PR should be fairly simple if you want to contribute it. You probably just need to add an argument to https://github.com/bbangert/beaker/blob/c089668e6ebb92c6d813ce731ea3b676e0024b7a/beaker/cache.py#L545C5-L545C20 and test
Functions needed and reasons:
Hope to support these features as soon as possible.