UserCache

class dasha.web.extensions.cache.UserCache(namespace)[source]

Bases: object

A class to manage user cache items in namespaces.

Parameters
namespacestr

The namespace under which the cache is stored.

Attributes Summary

namespace

Methods Summary

__call__(self, opname, \*args, \*\*kwargs)

Call self as a function.

get(self, \*args, \*\*kwargs)

invalidate(self)

Invalidate the cached keys.

set(self, \*args, \*\*kwargs)

Attributes Documentation

namespace

Methods Documentation

__call__(self, opname, \*args, \*\*kwargs)[source]

Call self as a function.

get(self, \*args, \*\*kwargs)[source]
invalidate(self)[source]

Invalidate the cached keys.

Note

This does not remove the cached data from the underlying cache object.

set(self, \*args, \*\*kwargs)[source]