cache

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Key       string    `json:"key" gorm:"primary_key"`
	Value     []byte    `json:"value" gorm:"type:text"`
	ExpiresAt time.Time `json:"expiresAt"`
	CreatedAt time.Time `json:"createdAt"`
}

func (*Cache) ConvertValueToEntity

func (c *Cache) ConvertValueToEntity(entity interface{}) error

func (*Cache) GetTable

func (c *Cache) GetTable() string

func (*Cache) SetCreatedAt

func (c *Cache) SetCreatedAt() *Cache

func (*Cache) SetExpiresAt

func (c *Cache) SetExpiresAt(expiresAt time.Time) *Cache

func (*Cache) ToBytes

func (c *Cache) ToBytes() []byte

Jump to

Keyboard shortcuts

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