This is an old revision of the document!


Update the expiration time for a key/value pair without fetching it.

syntax:

touch <key> <TTL> [noreply]

parameters:

  • TTL - The length of time (in seconds) the key/value pair will be stored in cache. A 0 value means the data will “never expire” and should not be removed from the cache unless required. If the TTL is more than 30 days then LSMCD interprets it as UNIX timestamp for expiration.
  • noreply - This optional parameter tells the server not to send any reply.

example:

touch mykey 1200

TOUCHED

output notes:

  • 1200 → set “mykey” to be stored for 20 minutes (1200 seconds) from the moment the touch command is run.
  • Admin
  • Last modified: 2016/04/07 14:42
  • by Rob Holda