package
1.8.7
Repository: https://github.com/sharedcode/sop.git
Documentation: pkg.go.dev

# Functions

Close the singleton connection if open.
Create a set of lock keys.
DefaultOptions.
Add prefix to the lock key so it becomes unique.
Returns true if connection instance is valid.
Returns true if lockKeys have claimed lock equivalent.
KeyNotFound will detect whether error signifies key not found by Redis.
Lock a set of keys.
Checks if Redis connection is open and returns the client interface if it is, otherwise returns an error.
Returns a new Redis mock client.
Creates a singleton connection and returns it for every call.
Unlock a set of keys.

# Variables

Marshaler allows you to specify custom marshaler if needed.

# Structs

Connection contains Redis client connection object and the Options used to connect.
LockKeys contain fields to allow locking and unlocking of a set of redis keys.
Redis configurable options.

# Interfaces

Cache interface specifies the methods implemented for Redis caching.