redis/

directory
v0.9.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause

README

Redis packages in Baseplate.go

We support two different sets of Redis packages in Baseplate.go.

Use Redis as a cache

If you use Redis as a cache, it's recommended to use redispipebp + redisx packages. They are built on top of redispipe open source project.

This combination can also be used if you use Redis as a DB but only do readings and not writings.

Use Redis as a DB

If you use Redis as a DB, and do writings, it's recommended to use redisbp package. It's built on top of go-redis open source project, and provides Wait function to help you make sure to reach the desired consistency level on write operations.

There are also certain Redis features not supported by redispipebp, like pubsub. If you need to use those features then you should choose redisbp as well.

Directories

Path Synopsis
cache
redispipebp
Package redispipebp provides baseplate.go integrations for the redispipe library that conform to the redix.Sync interface.
Package redispipebp provides baseplate.go integrations for the redispipe library that conform to the redix.Sync interface.
redisx
Package redisx wraps https://github.com/joomcode/redispipe in an interface where rather than returning the result, you pass in a pointer to the variable you want to put the result into and it uses reflection to do that.
Package redisx wraps https://github.com/joomcode/redispipe in an interface where rather than returning the result, you pass in a pointer to the variable you want to put the result into and it uses reflection to do that.
db
redisbp
Package redisbp provides Baseplate integrations for go-redis.
Package redisbp provides Baseplate integrations for go-redis.
internal
redisprom
Package redisprom provides objects to report metrics according to the Baseplate.spec
Package redisprom provides objects to report metrics according to the Baseplate.spec

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL