Files
herolib/lib/core/redisclient
mariobassem 81f377a532 test: improve logger test and search functionality
- Improve the logger test to include more specific assertions.
- Add timestamp filtering to the logger search function.
- Fix a bug in the logger search function that prevented it from correctly handling continuation lines.
- Update redisclient tests to use the correct return type.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-13 18:46:13 +02:00
..
fix
2024-12-25 19:17:23 +01:00
2024-12-25 19:01:32 +01:00
2024-12-25 19:01:32 +01:00
fix
2024-12-25 19:17:23 +01: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/