node js redis set ttl code example Example: redis set expire time node js client.set(key, value, 'EX', 60 * 60 * 24, callback);