Exemplo n.º 1
0
 def hmset(self, name, mapping):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.hmset',
         super(OcRedis, self).hmset, name, mapping, name, mapping)
Exemplo n.º 2
0
 def pexpire(self, name, time):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.pexpire',
         super(OcRedis, self).pexpire, name, None, name, time)
Exemplo n.º 3
0
 def ping(self):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.ping',
         super(OcRedis, self).ping, None, None)
Exemplo n.º 4
0
 def move(self, name, db):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.move',
         super(OcRedis, self).move, name, None, name, db)
Exemplo n.º 5
0
 def object(self, infotype, key):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.object',
         super(OcRedis, self).object, infotype, key, infotype, key)
Exemplo n.º 6
0
 def bitcount(self, key, *args, **kwargs):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.bgsave',
         super(OcRedis, self).bgsave, key, None, key, *args, **kwargs)
Exemplo n.º 7
0
 def memory_usage(self, key, samples=None):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.memory_usage',
         super(OcRedis, self).memory_usage, key, None, key, samples)
Exemplo n.º 8
0
 def incrbyfloat(self, name, amount=1.0):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.incrbyfloat',
         super(OcRedis, self).incrbyfloat, name, None, name, amount)
Exemplo n.º 9
0
 def info(self, section=None):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.info',
         super(OcRedis, self).info, None, None, section)
Exemplo n.º 10
0
 def bgrewriteaof(self):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.bgrewriteaof',
         super(OcRedis, self).bgrewriteaofget, None, None)
Exemplo n.º 11
0
 def hvals(self, name):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.hvals',
         super(OcRedis, self).hvals, name, None, name)
Exemplo n.º 12
0
 def hstrlen(self, name, key):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.hstrlen',
         super(OcRedis, self).hstrlen, name, key, name, key)
Exemplo n.º 13
0
 def hsetnx(self, name, key, value):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.hsetnx',
         super(OcRedis, self).hsetnx, key, value, name, key, value)
Exemplo n.º 14
0
 def hscan_iter(self, name, match=None, count=None):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.hscan_iter',
         super(OcRedis, self).hscan_iter, name, None, name, match, count)
Exemplo n.º 15
0
 def lset(self, name, index, value):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.lset',
         super(OcRedis, self).lset, name, value, name, index, value)
Exemplo n.º 16
0
 def keys(self, pattern=u'*'):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.keys',
         super(OcRedis, self).keys, pattern, None, pattern)
Exemplo n.º 17
0
 def ltrim(self, name, start, end):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.ltrim',
         super(OcRedis, self).ltrim, name, None, name, start, end)
Exemplo n.º 18
0
 def lindex(self, name, index):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.lindex',
         super(OcRedis, self).lindex, name, None, name, index)
Exemplo n.º 19
0
 def memory_purge(self):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.memory_purge',
         super(OcRedis, self).memory_purge, None, None)
Exemplo n.º 20
0
 def linsert(self, name, where, refvalue, value):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.linsert',
         super(OcRedis, self).linsert, name, value, name, where, refvalue,
         value)
Exemplo n.º 21
0
 def mget(self, keys, *args):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.mget',
         super(OcRedis, self).mget, keys, args, keys, *args)
Exemplo n.º 22
0
 def bgsave(self):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.bgsave',
         super(OcRedis, self).bgsave, None, None)
Exemplo n.º 23
0
 def msetnx(self, mapping):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.msetnx',
         super(OcRedis, self).msetnx, mapping, None, mapping)
Exemplo n.º 24
0
 def lpop(self, name):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.lpop',
         super(OcRedis, self).lpop, name, None, name)
Exemplo n.º 25
0
 def bitfield(self, key, *args, **kwargs):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.bitfield',
         super(OcRedis, self).bitfield, key, *args, **kwargs)
Exemplo n.º 26
0
 def lpush(self, name, *values):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.lpush',
         super(OcRedis, self).lpop, name, values, name, values)
Exemplo n.º 27
0
 def pfadd(self, name, *values):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.pfadd',
         super(OcRedis, self).pfadd, name, values, name, *values)
Exemplo n.º 28
0
 def lpushx(self, name, value):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.lpushx',
         super(OcRedis, self).lpushx, name, value, name, value)
Exemplo n.º 29
0
 def pipeline(self, transaction=True, shard_hint=None):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.pipeline',
         super(OcRedis, self).pipeline, None, None, transaction, shard_hint)
Exemplo n.º 30
0
 def hmget(self, name, key, *args):
     return trace_and_record_stats_with_key_and_value(
         'redispy.Redis.hmget',
         super(OcRedis, self).hmget, name, key, name, key, *args)