noc.core.cache.redis

Module Contents

noc.core.cache.redis.ignorable_redis_errors
class noc.core.cache.redis.RedisCache

Bases: noc.core.cache.base.BaseCache

static serialize(v)

Convert value to wire format :param v: :return:

static deserialize(v)

Convert wire format to value :param v: :return:

get(self, key, default=None, version=None)

Returns value or raise KeyError :param key: :param default: :param version: :return: value

set(self, key, value, ttl=None, version=None)

Set key :param key: :param value: :param ttl: :param version: :return:

delete(self, key, version=None)
get_many(self, keys, version=None)
set_many(self, data, ttl=None, version=None)
delete_many(self, keys, version=None)