Prefix-generating decorators

class simplekv.decorator.PrefixDecorator(prefix, store)

Prefixes any key with a string before passing it on the decorated store. Automatically strips the prefix upon key retrieval.

Parameters:
  • store – The store to pass keys on to.
  • prefix – Prefix to add.