Skip to navigation
How to set a expire date to a redis key
16.12.14
use expire after setting: $this->redis = new Redis() or die("Can'f load redis module."); $this->redis->connect('127.0.0.1'); $this->redis->set('mykey',serialize($array)); $this->redis->expire('mykey',8000);
http://redis.io/commands/ttl
Reply
Anonymous
Information Epoch 1732556669
When you must fail, fail noisily and as soon as possible.
Home
Notebook
Contact us