Files
herolib/lib/core/redisclient
Mahmoud-Emad 92c8a3b955 fix: improve Redis response parsing and error handling
- Add error handling for non-array and error responses
- Introduce `strget()` for safer string conversion from RValue
- Update AGE client to use `strget()` for key retrieval
- Change AGE verify methods to expect a string response
- Handle multiple response types when listing AGE keys
2025-09-14 18:15:23 +03:00
..
2025-05-20 07:00:00 +04:00
2024-12-25 19:01:32 +01: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/