Discover Packages
github.com/viveknathani/kkrh
cache
package
Version:
v0.0.0-...-5811bfc
Opens a new window with list of versions in this module.
Published: Jan 21, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Get is a generic method to do the obvious.
It is not a method of the Cache struct because connection management
is server's responsibility.
Set is a generic method to do the obvious.
It is not a method of the Cache struct because connection management
is server's responsibility.
Cache contains the connection pool for Redis.
Server should call Initialize before usage and
each goroutine should work on a new connection
using Pool.Get().
Close will free up all the resources of the pool.
Initialize will set up the connection pool so that
future connections can take place on the given URL.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.