Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Dec(key string, by int64) (int64, error)
- func (c *Cache) DequeueWork(key string) (string, error)
- func (c *Cache) Get(key string) (string, error)
- func (c *Cache) GetTyped(key string, v interface{}) error
- func (c *Cache) HasPermission(token, repo, payload string) bool
- func (c *Cache) Inc(key string, by int64) (int64, error)
- func (c *Cache) Publish(msg internal.Command) error
- func (c *Cache) PublishDocument(channel, typ string, v interface{})
- func (c *Cache) QueueWork(key, value string) error
- func (c *Cache) Set(key string, value string) error
- func (c *Cache) SetTyped(key string, v interface{}) error
- func (c *Cache) Subscribe(send chan internal.Command, token, channel string, close chan bool)
- type CacheDev
- func (d *CacheDev) Dec(key string, by int64) (int64, error)
- func (d *CacheDev) DequeueWork(key string) (val string, err error)
- func (d *CacheDev) Get(key string) (val string, err error)
- func (d *CacheDev) GetTyped(key string, v any) error
- func (d *CacheDev) Inc(key string, by int64) (n int64, err error)
- func (d *CacheDev) Publish(msg internal.Command) error
- func (d *CacheDev) PublishDocument(channel, typ string, v any)
- func (d *CacheDev) QueueWork(key, value string) error
- func (d *CacheDev) Set(key string, value string) error
- func (d *CacheDev) SetTyped(key string, v any) error
- func (d *CacheDev) Subscribe(send chan internal.Command, token, channel string, close chan bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Rdb *redis.Client
Ctx context.Context
// contains filtered or unexported fields
}
func (*Cache) HasPermission ¶
func (*Cache) PublishDocument ¶
type CacheDev ¶ added in v1.4.0
type CacheDev struct {
// contains filtered or unexported fields
}
func NewDevCache ¶ added in v1.4.0
func NewDevCache() *CacheDev
func (*CacheDev) DequeueWork ¶ added in v1.4.0
func (*CacheDev) PublishDocument ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.