Stores an item on the Redis server under the specified key.
string $key:
mixed $value:
int $expiration:
int $serializer:
Boolean
private function setValue($key, $value, $expiration = 0, $serializer = self::REDIS_SERIALIZER_NONE) {
$redis = $this
->getRedis();
$redis
->setOption(self::REDIS_OPT_SERIALIZER, $serializer);
return $redis
->setex($key, $expiration, $value);
}