aiocache icon indicating copy to clipboard operation
aiocache copied to clipboard

`build_key(key, namespace)` is missing from some modules/classes

Open padraic-shafer opened this issue 2 years ago • 0 comments

There are some parts of aiocache that do not honor namespaces. This means that BaseCache.build_key(key, namespace) is never called to join the namespace with the key. The affected modules/classes are:

  • decorators.cached
  • plugins.HitMissRatioPlugin
  • backends.memory.SimpleMemoryCache

This affects sharing an aliased cache across multiple @cached-decorated callables. This currently works only when namespace==None.

A PR will be submitted shortly.

padraic-shafer avatar Apr 24 '22 00:04 padraic-shafer