Documentation
¶
Index ¶
- type Cache
- func (c *Cache) DeleteApplicationByAPIKey(ctx context.Context, apiKey string) error
- func (c *Cache) GetApplicationByAPIKey(ctx context.Context, apiKey string) (*model.ApplicationCache, error)
- func (c *Cache) SetApplicationByAPIKey(ctx context.Context, app *model.ApplicationCache, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a simple caching interface for Redis
func (*Cache) DeleteApplicationByAPIKey ¶
DeleteApplicationByAPIKey removes an application from cache by API key
func (*Cache) GetApplicationByAPIKey ¶
func (c *Cache) GetApplicationByAPIKey(ctx context.Context, apiKey string) (*model.ApplicationCache, error)
GetApplicationByAPIKey retrieves an application from cache by API key
func (*Cache) SetApplicationByAPIKey ¶
func (c *Cache) SetApplicationByAPIKey(ctx context.Context, app *model.ApplicationCache, expiration time.Duration) error
SetApplicationByAPIKey caches an application with the given API key and expiration
Click to show internal directories.
Click to hide internal directories.