Documentation
¶
Index ¶
- func NewContext(ctx context.Context) context.Context
- type Context
- func (c *Context) Add(ctx context.Context, k entcache.Key, e *entcache.Entry, ttl time.Duration) error
- func (c *Context) Del(ctx context.Context, k entcache.Key) error
- func (c *Context) Get(ctx context.Context, k entcache.Key) (*entcache.Entry, error)
- func (c *Context) LockOrWait(ctx context.Context, k entcache.Key) (bool, func(context.Context) (*entcache.Entry, error), func(context.Context), ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct{}
Context provides a request/context-level cache.
func (*Context) Add ¶
func (c *Context) Add(ctx context.Context, k entcache.Key, e *entcache.Entry, ttl time.Duration) error
Add adds an entry to the context-level cache.
Click to show internal directories.
Click to hide internal directories.