9951 explained code solutions for 126 technologies


redisSet key with expiration in Redis


redis-cli SET test 124 EX 300ctrl + c
redis-cli

launch Redis CLI interface in interactive mode

SET

sets value by specified key

test

key name to set value for

124

value to set for specified key

EX

set seconds to expire after for the key

300

our key will expire in 300 seconds