Files
herolib/lib/core/redisclient
2025-09-17 07:39:54 +02:00
..
2025-05-20 07:00:00 +04:00
2024-12-25 19:01:32 +01:00
...
2025-09-17 07:22:27 +02:00
...
2025-09-15 06:22:01 +02:00
...
2025-09-17 07:39:54 +02:00
...
2025-03-24 06:44:39 +01:00
2025-01-27 17:18:39 +02:00

Redisclient

basic example to connect to local redis on 127.0.0.1:6379


import freeflowuniverse.herolib.core.redisclient

mut redis := redisclient.core_get()!
redis.set('test', 'some data') or { panic('set' + err.str() + '\n' + c.str()) }
r := redis.get('test')?
if r != 'some data' {
    panic('get error different result.' + '\n' + c.str())
}

redis commands can be found on https://redis.io/commands/