cache

package
v0.0.0-...-eecab09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BigCacheDataSourceImpl

type BigCacheDataSourceImpl struct {
	Cache *bigcache.BigCache
}

BigCacheDataSourceImpl -.

func NewBigCacheDataSourceImp

func NewBigCacheDataSourceImp(cache *bigcache.BigCache) *BigCacheDataSourceImpl

NewBigCacheDataSourceImpl -.

func (*BigCacheDataSourceImpl) Delete

Delete -.

func (*BigCacheDataSourceImpl) DeleteListKeys

func (r *BigCacheDataSourceImpl) DeleteListKeys(ctx context.Context, model dto.IRepoEntity) error

DeleteListKeys -.

func (*BigCacheDataSourceImpl) DeleteWithKey

func (r *BigCacheDataSourceImpl) DeleteWithKey(ctx context.Context, key string) error

func (*BigCacheDataSourceImpl) Get

Get -.

func (*BigCacheDataSourceImpl) GetListItem

func (r *BigCacheDataSourceImpl) GetListItem(ctx context.Context, model dto.IRepoEntity, sq *domain.SearchQuery, _ ...time.Duration) (*dto.List, error)

GetListItem -.

func (*BigCacheDataSourceImpl) GetListKeys

func (r *BigCacheDataSourceImpl) GetListKeys(ctx context.Context, model dto.IRepoEntity) ([]string, error)

GetListKeys -.

func (*BigCacheDataSourceImpl) Set

Set -.

func (*BigCacheDataSourceImpl) SetListItem

func (r *BigCacheDataSourceImpl) SetListItem(ctx context.Context, model []dto.IRepoEntity, sq *domain.SearchQuery, count int64, _ ...time.Duration) error

SetListItem -.

type RedisCacheDataSourceImpl

type RedisCacheDataSourceImpl struct {
	Client        *rockscache.Client
	SQLDataSource datasource.IDataSource
}

RedisCacheDataSourceImpl -.

func NewRedisCacheDataSourceImpl

func NewRedisCacheDataSourceImpl(client *rockscache.Client, sqlDatasource datasource.IDataSource) *RedisCacheDataSourceImpl

NewRedisCacheDataSourceImpl -.

func (*RedisCacheDataSourceImpl) Delete

Delete -.

func (*RedisCacheDataSourceImpl) DeleteListKeys

func (r *RedisCacheDataSourceImpl) DeleteListKeys(ctx context.Context, model dto.IRepoEntity) error

DeleteListKeys -.

func (*RedisCacheDataSourceImpl) DeleteWithKey

func (r *RedisCacheDataSourceImpl) DeleteWithKey(ctx context.Context, key string) error

func (*RedisCacheDataSourceImpl) Get

GetByID -.

func (*RedisCacheDataSourceImpl) GetListItem

func (r *RedisCacheDataSourceImpl) GetListItem(ctx context.Context, model dto.IRepoEntity, sq *domain.SearchQuery, ttl ...time.Duration) (*dto.List, error)

GetListItem -.

func (*RedisCacheDataSourceImpl) GetListKeys

func (r *RedisCacheDataSourceImpl) GetListKeys(ctx context.Context, model dto.IRepoEntity) ([]string, error)

func (*RedisCacheDataSourceImpl) Set

Set -.

func (*RedisCacheDataSourceImpl) SetListItem

SetListItem -.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL