redis-cli keys "sess*" | while read LINE ;do echo `redis-cli EXPIRE $LINE 10000`; done; NOTE: "sess*" will be replaced by the key name and 10000 will be replaced by time you want to set for expiry (will be in seconds)
The blog will contain all the Technical knowledge I have to share and I welcome & would appreciate others for sharing their knowledge :0)