cacheport

v0.1.0
io.github.CloudCorpRecords/cacheport Checked 2 days ago Published 1 month ago

Key-value cache over Redis: set, get, delete and list keys.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

set

Set a Redis key-value pair with optional expiration

ParameterTypeDescription
key *stringThe Redis key to set
value *stringThe string value to store under the key
expireSecondsnumberOptional expiration time in seconds after which the key expires; must be a positive number

get

Get a value by key from Redis

ParameterTypeDescription
key *stringThe Redis key whose value to retrieve

delete

Delete one or more keys from Redis

ParameterTypeDescription
key *The Redis key to delete, or an array of Redis keys to delete

list

List Redis keys matching a pattern

ParameterTypeDescription
patternstringOptional glob pattern to match key names against; defaults to '*' to list all keys