Documentation ¶
Index ¶
- Variables
- type Memory
- type Redis
- func (r *Redis) Delete(ctx context.Context, key string) error
- func (r *Redis) Get(ctx context.Context, key string) (process.Context, bool)
- func (r *Redis) Inject(logger flamingo.Logger, cfg ...) *Redis
- func (r *Redis) Status() (alive bool, details string)
- func (r *Redis) Store(ctx context.Context, key string, placeOrderContext process.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoRedisConnection is returned if the underlying connection is erroneous ErrNoRedisConnection = errors.New("no redis connection, see healthcheck") )
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory saves all contexts in a simple map
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis saves all contexts in a simple map
func (*Redis) Inject ¶
func (r *Redis) Inject( logger flamingo.Logger, cfg *struct { MaxIdle int `inject:"config:commerce.checkout.placeorder.contextstore.redis.maxIdle"` IdleTimeoutMilliseconds int `inject:"config:commerce.checkout.placeorder.contextstore.redis.idleTimeoutMilliseconds"` Network string `inject:"config:commerce.checkout.placeorder.contextstore.redis.network"` Address string `inject:"config:commerce.checkout.placeorder.contextstore.redis.address"` Database int `inject:"config:commerce.checkout.placeorder.contextstore.redis.database"` }) *Redis
Inject dependencies
Click to show internal directories.
Click to hide internal directories.