Discover Packages
github.com/stickermule/rump
pkg
redis
package
Version:
v0.0.0-...-221a75c
Opens a new window with list of versions in this module.
Published: Jul 9, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package redis allows reading/writing from/to a Redis DB.
Redis holds references to a DB pool and a shared message bus.
Silent disables verbose mode.
TTL enables TTL sync.
New creates the Redis struct, used to read/write.
Read gently scans an entire Redis DB for keys, then dumps
the key/value pair (Payload) on the message Bus channel.
It leverages implicit pipelining to speedup large DB reads.
To be used in an ErrGroup.
Write restores keys on the db as they come on the message bus.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.