Documentation
¶
Overview ¶
Package managed adds owner-scoped invalidation to native SQLX caches.
Index ¶
- type AerospikeStore
- type Cache
- func (c *Cache) Close(ctx context.Context, entry *cache.Entry) error
- func (c *Cache) Delete(ctx context.Context, entry *cache.Entry) error
- func (c *Cache) Get(ctx context.Context, sql string, args []interface{}, options ...interface{}) (*cache.Entry, error)
- func (c *Cache) IndexBy(ctx context.Context, db *sql.DB, column, sql string, args []interface{}, ...) (int, error)
- func (c *Cache) IndexByWithResult(ctx context.Context, db *sql.DB, column, sql string, args []interface{}, ...) (*cache.IndexByResult, error)
- func (c *Cache) Invalidate(ctx context.Context, scope Scope) (string, error)
- func (c *Cache) InvalidateCache(ctx context.Context, scope string) (string, error)
- func (c *Cache) Lookup(ctx context.Context, sql string, args []interface{}, options ...interface{}) (*cache.Entry, error)
- func (c *Cache) Rollback(ctx context.Context, entry *cache.Entry) error
- func (c *Cache) UpdateType(ctx context.Context, entry *cache.Entry, values []interface{}) (bool, error)
- type FileStore
- type Generation
- type Scope
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AerospikeStore ¶
type AerospikeStore struct {
// contains filtered or unexported fields
}
func NewAerospikeStore ¶
func NewAerospikeStore(client *as.Client, namespace, set, owner string) (*AerospikeStore, error)
func (*AerospikeStore) Read ¶
func (s *AerospikeStore) Read(ctx context.Context) (Generation, error)
type Cache ¶
func (*Cache) IndexByWithResult ¶
func (*Cache) Invalidate ¶
func (*Cache) InvalidateCache ¶
InvalidateCache is the string-based capability exposed to host applications.
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
type Generation ¶
type Generation struct{ All, Lazy, Warmup string }
Click to show internal directories.
Click to hide internal directories.