v1.0.1: Handle TTL and clear key

This commit is contained in:
2024-02-04 10:42:12 +01:00
parent 30e1bf70d9
commit 2cf5dff011
3 changed files with 10 additions and 4 deletions

View File

@ -30,8 +30,14 @@ Usage
-----
* Create data adapter, cache (or not), lookup table
* Use 'lookup_set_value(lookup_table, key, value)' to create or update key in redis
* Use 'lookup(lookup_table, key)' to get key
* Use 'lookup_set_value(lookup_table, key, value, [ttl])' to create or update key in redis
* Use 'lookup_value(lookup_table, key)' to get key value
* Use 'lookup_clear_key(lookup_table, key)' to remove key
* Use 'lookup_has_value(lookup_table, key)' to test key existence
* Use 'lookup_assign_ttl(lookup_table, key, ttl)' to change TTL of existing key
By default keys will be created in Redis with the default TTL defined at data adapter creation time
Getting started
---------------