Documentation
¶
Index ¶
- Constants
- Variables
- type CacheItem
- func (*CacheItem) Descriptor() ([]byte, []int)deprecated
- func (ci *CacheItem) EffectiveData() []byte
- func (ci *CacheItem) Expired(cur, timeoutSeconds int64) bool
- func (x *CacheItem) GetCreatedAt() int64
- func (x *CacheItem) GetData() []byte
- func (x *CacheItem) GetUpdatedAt() int64
- func (x *CacheItem) GetUpdatedCount() int64
- func (ci *CacheItem) IsEmpty() bool
- func (ci *CacheItem) MapData() (data base.MapData, err error)
- func (ci *CacheItem) Marshal() ([]byte, error)
- func (*CacheItem) ProtoMessage()
- func (x *CacheItem) ProtoReflect() protoreflect.Message
- func (x *CacheItem) Reset()
- func (ci *CacheItem) SaveData(data []byte) *CacheItem
- func (x *CacheItem) String() string
- func (ci *CacheItem) UnmarshalJsonData(out any) error
- func (ci *CacheItem) UnmarshalProtoData(out proto.Message) error
Constants ¶
View Source
const ( EmptyTag = `result:EmPty` Forever = 0 )
Variables ¶
View Source
var ( ErrEmpty = errors.New(`value is empty`) Empty = []byte(EmptyTag) )
View Source
var File_value_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CacheItem ¶
type CacheItem struct { CreatedAt int64 `protobuf:"varint,1,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,2,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` UpdatedCount int64 `protobuf:"varint,3,opt,name=updatedCount,proto3" json:"updatedCount,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CacheItem) Descriptor
deprecated
func (*CacheItem) EffectiveData ¶
func (*CacheItem) GetCreatedAt ¶
func (*CacheItem) GetUpdatedAt ¶
func (*CacheItem) GetUpdatedCount ¶
func (*CacheItem) ProtoMessage ¶
func (*CacheItem) ProtoMessage()
func (*CacheItem) ProtoReflect ¶
func (x *CacheItem) ProtoReflect() protoreflect.Message
func (*CacheItem) UnmarshalJsonData ¶
Click to show internal directories.
Click to hide internal directories.