Documentation ¶
Index ¶
- Constants
- func Close() error
- func Pub(channel string, message interface{}) error
- func PubCtx(ctx context.Context, channel string, message interface{}) error
- func Sub(channel string, reciveFn func(interface{}))
- func SubCtx(ctx context.Context, channel string, reciveFn func(interface{}))
- type Conn
- func (c *Conn) Clear(match string)
- func (c *Conn) Del(key string) bool
- func (c *Conn) Empty()
- func (c *Conn) Get(key string, def string) (string, error)
- func (c *Conn) Keys() []string
- func (c *Conn) Len() int
- func (c *Conn) More(key string, expiration time.Duration) int64
- func (c *Conn) Set(key string, value string, expiration time.Duration) string
- func (c *Conn) Type() string
- func (c *Conn) Values() []string
Constants ¶
View Source
const ( ERR_ENV_REQUIRED = "Variables de entorno requerida (%s)" ERR_NOT_CACHE_SERVICE = "Not cache service" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Get ¶
* * Get method to use in cache * @param key string * @param def string * @return string * @return error *
func (*Conn) More ¶ added in v0.0.3
* * More method to use in cache * @param key string * @param expiration time.Duration * @return int *
func (*Conn) Set ¶
* * Set method to use in cache * @param key string * @param value string * @param expiration time.Duration * @return string *
Click to show internal directories.
Click to hide internal directories.