从Redis中获取值

@param key 键
@return 值
438534
public String getStr(String key) {
		try (Jedis jedis = getJedis()) {
			return jedis.get(key);
		}
	}
504561
public function get(string $key)
    {
        //从缓存中取值,并解码
        $value = json_decode(Redis::getString(self::PREFIX . $key), true);

        return parent::debugGet($key, is_null($value) ? CacheFactory::NOT_FOUND : $value);
    }
755102
public function smembers($key)
    {
        try {
            return $this->redis->smembers($key);
        } catch (\RedisException $e) {
            die("Error!: " . $e->getMessage() . "<br/>");
        }
    }
110031
public function lsize($key)
    {
        try {
            return $this->redis->lsize($key);
        } catch (\RedisException $e) {
            die("Error!: " . $e->getMessage() . "<br/>");
        }
    }
997464
def hget(self, name, key):
        
        with self.pipe as pipe:
            f = Future()
            res = pipe.hget(self.redis_key(name),
                            self.memberparse.encode(key))

            def cb():
                f.set(self._value_decode(key, res.result))

            pipe.on_execute(cb)
            return f
490314
public function spop($key)
    {
        try {
            return $this->redis->spop($key);
        } catch (\RedisException $e) {
            die("Error!: " . $e->getMessage() . "<br/>");
        }
    }
6885
public function delete($key)
    {
        $key = $this->_key($key);

        return $this->_Redis->delete($key) > 0;
    }
459156
def _get_key_redis_key(bank, key):
    '''
    
    '''
    opts = _get_redis_keys_opts()
    return '{prefix}{separator}{bank}/{key}'.format(
        prefix=opts['key_prefix'],
        separator=opts['separator'],
        bank=bank,
        key=key
    )
1157030
function del(key) {
  if (!shouldProcess(key) || !module.exports.client) return bluebird.resolve();

  return module.exports.client.hdelAsync(REDIS_HASH, key);
}
763138
protected function retrieve($key)
    {
        if (!is_null($cache = $this->redis->get($key))) {
            return unserialize($cache);
        }

        return null;
    }
1297173
function getBytes(key, callback) {
	this.redisClient.get(key, function(err, valueBytes) {
		if (err) { return callback(err) }
		if (!valueBytes) { return callback(null, null) }
		callback(null, valueBytes.toString())
	})
}
806991
public function get(CacheKey $key) {

        $value = $this->redis->get($this->getKey($key));

        $unserialized = @unserialize($value);

        if ($unserialized !== false) {
            $value = $unserialized;
        } else if ($value === null) {
            $value = false;
        }

        return $value;
    }
1135680
def get(self, key):
        
        value = redis_conn.get(key)

        if value is not None:
            value = pickle.loads(value)

        return value
201726
final public function hget($key, $hkey=null) {
		$res = $this->connection->hget($key, $hkey);
		self::$logger->info(sprintf(
			"Redis: hget %s.%s: '%s'.", $key, $hkey, $res));
		return $res;
	}
776048
public T get(long key) {
		for (int i = 0; i < this.numTables; i++) {
			Entry<T> entry = this.tables.get(i).get(
					this.hashfunctions.get(i).hash(key));
			if (entry != null && entry.getKey() == key) {
				return entry.getValue();
			}
		}
		for (Entry<T> entry : this.stash) {
			if (entry.getKey() == key) {
				return entry.getValue();
			}
		}
		return null;
	}
541213
public V remove(Object key) {
        List<V> res = map.remove(key);
        if (res == null) {
            return null;
        }
        assert (!res.isEmpty());
        return res.iterator().next();
    }
643657
def copy(self, key=None):
        
        other = self.__class__(redis=self.redis, key=key)
        other.update(self)

        return other