Documentation ¶
Index ¶
- type AddCmd
- func (cmd *AddCmd) Reset() *AddCmd
- func (cmd *AddCmd) SetExpires(expires int64) *storageCmd
- func (cmd *AddCmd) SetFlags(flags uint16) *storageCmd
- func (cmd *AddCmd) SetNoReply(noreply bool) *storageCmd
- func (cmd *AddCmd) UnmarshalText(data []byte) error
- func (cmd *AddCmd) WriteTo(dst io.Writer) (int64, error)
- type AppendCmd
- func (cmd *AppendCmd) Reset() *AppendCmd
- func (cmd *AppendCmd) SetExpires(expires int64) *storageCmd
- func (cmd *AppendCmd) SetFlags(flags uint16) *storageCmd
- func (cmd *AppendCmd) SetNoReply(noreply bool) *storageCmd
- func (cmd *AppendCmd) UnmarshalText(data []byte) error
- func (cmd *AppendCmd) WriteTo(dst io.Writer) (int64, error)
- type CasCmd
- func (cmd *CasCmd) Reset() *CasCmd
- func (cmd *CasCmd) SetCas(cas uint64) *CasCmd
- func (cmd *CasCmd) SetExpires(expires int64) *storageCmd
- func (cmd *CasCmd) SetFlags(flags uint16) *storageCmd
- func (cmd *CasCmd) SetNoReply(noreply bool) *storageCmd
- func (cmd *CasCmd) UnmarshalText(data []byte) error
- func (cmd *CasCmd) WriteTo(dst io.Writer) (int64, error)
- type Cmd
- type DeleteCmd
- type FlagCompareCas
- type FlagDontRecache
- type FlagInvalidateOnOldCas
- type FlagKeyAsBase64
- type FlagNoReply
- type FlagOpaque
- type FlagRecache
- type FlagRecacheResult
- type FlagRetrieveCas
- type FlagRetrieveClientFlags
- type FlagRetrieveKey
- type FlagRetrievePreviousHit
- type FlagRetrieveRemainingTTL
- type FlagRetrieveSize
- type FlagRetrieveTimeSinceLastAccess
- type FlagRetrieveValue
- type FlagSetClientFlags
- type FlagSetTTL
- type FlagSkipLRUBump
- type FlagStale
- type FlagUpdateTTL
- type FlagVivifyOnMiss
- type GetCmd
- type GetReply
- type GetReplyItem
- type MetaDeleteCmd
- func (cmd *MetaDeleteCmd) Key() string
- func (cmd *MetaDeleteCmd) SetCompareCas(cas uint64) *MetaDeleteCmd
- func (cmd *MetaDeleteCmd) SetInvalidateOnOldCas(v bool) *MetaDeleteCmd
- func (cmd *MetaDeleteCmd) SetKeyAsBase64(b64 bool) *MetaDeleteCmd
- func (cmd *MetaDeleteCmd) SetNoReply(noreply bool) *MetaDeleteCmd
- func (cmd *MetaDeleteCmd) SetOpaque(opaque []byte) *MetaDeleteCmd
- func (cmd *MetaDeleteCmd) SetUpdateTTL(ttl uint32) *MetaDeleteCmd
- func (cmd *MetaDeleteCmd) WriteTo(dst io.Writer) (int64, error)
- type MetaDeleteCmdStatus
- type MetaDeleteReply
- type MetaGetCmd
- func (cmd *MetaGetCmd) Key() string
- func (cmd *MetaGetCmd) Reset() *MetaGetCmd
- func (cmd *MetaGetCmd) SetKeyAsBase64(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetNoReply(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetOpaque(o []byte) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrieveCas(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrieveClientFlags(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrieveKey(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrievePreviousHit(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrieveRemainingTTL(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrieveSize(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrieveTimeSinceLastAccess(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetRetrieveValue(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetSkipLRUBump(b bool) *MetaGetCmd
- func (cmd *MetaGetCmd) SetUpdateTTL(ttl int64) *MetaGetCmd
- func (cmd *MetaGetCmd) SetVivifyOnMiss(ttl uint64) *MetaGetCmd
- func (cmd *MetaGetCmd) String() string
- func (cmd *MetaGetCmd) UnmarshalText(data []byte) error
- func (cmd *MetaGetCmd) WriteTo(dst io.Writer) (int64, error)
- type MetaGetReply
- func (mr *MetaGetReply) IsMiss() bool
- func (mr *MetaGetReply) Key() string
- func (reply *MetaGetReply) ReadFrom(src io.Reader) (int64, error)
- func (mr *MetaGetReply) SetCas(v uint64) *MetaGetReply
- func (mr *MetaGetReply) SetClientFlags(v uint32) *MetaGetReply
- func (mr *MetaGetReply) SetItemSize(v uint64) *MetaGetReply
- func (mr *MetaGetReply) SetKey(s string, b64 bool) *MetaGetReply
- func (mr *MetaGetReply) SetKeyAsBase64(b bool) *MetaGetReply
- func (mr *MetaGetReply) SetMiss(b bool) *MetaGetReply
- func (mr *MetaGetReply) SetOpaque(o []byte) *MetaGetReply
- func (mr *MetaGetReply) SetPreviousHit(b bool) *MetaGetReply
- func (mr *MetaGetReply) SetRecacheResult(win bool) *MetaGetReply
- func (mr *MetaGetReply) SetRemainingTTL(v int64) *MetaGetReply
- func (mr *MetaGetReply) SetRetrieveKey(s string) *MetaGetReply
- func (mr *MetaGetReply) SetStale(b bool) *MetaGetReply
- func (mr *MetaGetReply) SetTimeSinceLastAccess(v uint64) *MetaGetReply
- func (mr *MetaGetReply) SetValue(b []byte) *MetaGetReply
- func (mr *MetaGetReply) Value() []byte
- func (mr *MetaGetReply) WriteTo(dst io.Writer) (int64, error)
- type MetaSetCmd
- func (cmd *MetaSetCmd) Key() string
- func (cmd *MetaSetCmd) SetKeyAsBase64(b64 bool) *MetaSetCmd
- func (cmd *MetaSetCmd) SetMode(mode MetaSetMode) *MetaSetCmd
- func (cmd *MetaSetCmd) SetNoReply(noreply bool) *MetaSetCmd
- func (cmd *MetaSetCmd) SetOpaque(opaque []byte) *MetaSetCmd
- func (cmd *MetaSetCmd) SetRetrieveKey(v bool) *MetaSetCmd
- func (cmd *MetaSetCmd) UnmarshalText(data []byte) error
- func (cmd *MetaSetCmd) WriteTo(dst io.Writer) (int64, error)
- type MetaSetCmdStatus
- type MetaSetMode
- type MetaSetReply
- type PrependCmd
- func (cmd *PrependCmd) Reset() *PrependCmd
- func (cmd *PrependCmd) SetExpires(expires int64) *storageCmd
- func (cmd *PrependCmd) SetFlags(flags uint16) *storageCmd
- func (cmd *PrependCmd) SetNoReply(noreply bool) *storageCmd
- func (cmd *PrependCmd) UnmarshalText(data []byte) error
- func (cmd *PrependCmd) WriteTo(dst io.Writer) (int64, error)
- type ReplaceCmd
- func (cmd *ReplaceCmd) Reset() *ReplaceCmd
- func (cmd *ReplaceCmd) SetExpires(expires int64) *storageCmd
- func (cmd *ReplaceCmd) SetFlags(flags uint16) *storageCmd
- func (cmd *ReplaceCmd) SetNoReply(noreply bool) *storageCmd
- func (cmd *ReplaceCmd) UnmarshalText(data []byte) error
- func (cmd *ReplaceCmd) WriteTo(dst io.Writer) (int64, error)
- type Reply
- type SetCmd
- func (cmd *SetCmd) Reset() *SetCmd
- func (cmd *SetCmd) SetExpires(expires int64) *storageCmd
- func (cmd *SetCmd) SetFlags(flags uint16) *storageCmd
- func (cmd *SetCmd) SetNoReply(noreply bool) *storageCmd
- func (cmd *SetCmd) UnmarshalText(data []byte) error
- func (cmd *SetCmd) WriteTo(dst io.Writer) (int64, error)
- type SetCmdReply
- type SetCmdReplyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCmd ¶
type AddCmd struct {
// contains filtered or unexported fields
}
func (*AddCmd) SetExpires ¶
func (cmd *AddCmd) SetExpires(expires int64) *storageCmd
func (*AddCmd) SetNoReply ¶
func (cmd *AddCmd) SetNoReply(noreply bool) *storageCmd
func (*AddCmd) UnmarshalText ¶
type AppendCmd ¶
type AppendCmd struct {
// contains filtered or unexported fields
}
func NewAppendCmd ¶
func (*AppendCmd) SetExpires ¶
func (cmd *AppendCmd) SetExpires(expires int64) *storageCmd
func (*AppendCmd) SetNoReply ¶
func (cmd *AppendCmd) SetNoReply(noreply bool) *storageCmd
func (*AppendCmd) UnmarshalText ¶
type CasCmd ¶
type CasCmd struct {
// contains filtered or unexported fields
}
func (*CasCmd) SetExpires ¶
func (cmd *CasCmd) SetExpires(expires int64) *storageCmd
func (*CasCmd) SetNoReply ¶
func (cmd *CasCmd) SetNoReply(noreply bool) *storageCmd
func (*CasCmd) UnmarshalText ¶
type DeleteCmd ¶
type DeleteCmd struct {
// contains filtered or unexported fields
}
func (*DeleteCmd) SetNoReply ¶
type FlagCompareCas ¶
type FlagCompareCas uint64
type FlagDontRecache ¶
type FlagDontRecache struct{}
type FlagInvalidateOnOldCas ¶
type FlagInvalidateOnOldCas struct{}
type FlagKeyAsBase64 ¶
type FlagKeyAsBase64 struct{}
FlagKeyAsBase64 is a flag used in Meta Commands to indicate if the key used should be treated as a base64 encoded string
type FlagNoReply ¶
type FlagNoReply struct{}
type FlagOpaque ¶
type FlagOpaque []byte
FlagOpague is a flag used in Meta Commands to send and receive opaque value
type FlagRecache ¶
type FlagRecache uint64
type FlagRecacheResult ¶
type FlagRecacheResult struct {
// contains filtered or unexported fields
}
type FlagRetrieveCas ¶
type FlagRetrieveCas uint64
FlagRetrieveCas is a flag used in Meta Commands for operations regarding retrieval of a CAS value for an item.
When used in a request, it indicates that the client wants to retrieve the CAS value for the item. When used in a response, it is suffixed with the actual CAS value
type FlagRetrieveClientFlags ¶
type FlagRetrieveClientFlags uint32
FlagRetrieveClientFlags is a flag used in Meta Commands for operations regarding retrieval of client flags for an item.
When used in a request, it indicates that the client wants to retrieve the client flags for the item. When used in a response, it is suffixed with the actual client flags
type FlagRetrieveKey ¶
type FlagRetrieveKey struct {
// contains filtered or unexported fields
}
type FlagRetrievePreviousHit ¶
type FlagRetrievePreviousHit struct {
// contains filtered or unexported fields
}
FlagRetrieveExpiry is a flag used in Meta Commands for operations to retrieve if the item has been hit before this action.
When used in a request, it indicates that the client wants to retrieve the "has been hit?" value for the item. When used in a response, it is suffixed with either a 0 or 1 to indicate the "has been hit?" value.
type FlagRetrieveRemainingTTL ¶
type FlagRetrieveRemainingTTL struct {
// contains filtered or unexported fields
}
type FlagRetrieveSize ¶
type FlagRetrieveSize struct {
// contains filtered or unexported fields
}
type FlagRetrieveTimeSinceLastAccess ¶
type FlagRetrieveTimeSinceLastAccess struct {
// contains filtered or unexported fields
}
type FlagRetrieveValue ¶
type FlagRetrieveValue struct{}
type FlagSetClientFlags ¶
type FlagSetClientFlags uint32
type FlagSetTTL ¶
type FlagSetTTL int64
type FlagSkipLRUBump ¶
type FlagSkipLRUBump struct{}
type FlagUpdateTTL ¶
type FlagUpdateTTL int64
type FlagVivifyOnMiss ¶
type FlagVivifyOnMiss uint64
type GetCmd ¶
type GetCmd struct {
// contains filtered or unexported fields
}
func NewGetCmd ¶
Creates a new GetCmd with the specified keys.
You can use the GetCmd to issue either `get` or `gets` commands, depending on the value of the `cas` parameter (which in turn can be set using the `SetRetrieveCas` method).
It is possible for this object to contain 0 keys, but the `WriteTo` method will return an error if there are no keys specified.
func (*GetCmd) AddKeys ¶
AddKeys adds the specified keys to the command.
It is safe to call this method concurrently with other methods on this object.
func (*GetCmd) Keys ¶
Keys returns the keys associated with this command.
It is safe to call this method concurrently with other methods on this object.
func (*GetCmd) Reset ¶
Reset clears the command. The keys and cas fields are reset to their zero values.
It is safe to call this method concurrently with other methods on this object.
func (*GetCmd) SetRetrieveCas ¶
SetRetrieveCas sets whether or not the `gets` command should be used. If `cas` is true, the `gets` command will be used, otherwise the `get` command will be used.
It is safe to call this method concurrently with other methods on this object.
func (*GetCmd) UnmarshalText ¶
UnmarshalText parses the specified data and populates the command appropriately
It is safe to call this method concurrently with other methods on this object.
type GetReply ¶
type GetReply struct {
// contains filtered or unexported fields
}
func NewGetReply ¶
func NewGetReply() *GetReply
func (*GetReply) AddItems ¶
func (reply *GetReply) AddItems(items ...*GetReplyItem) *GetReply
func (*GetReply) UnmarshalText ¶
type GetReplyItem ¶
type GetReplyItem struct {
// contains filtered or unexported fields
}
func NewGetReplyItem ¶
func NewGetReplyItem(key string, value []byte) *GetReplyItem
func (*GetReplyItem) SetCas ¶
func (item *GetReplyItem) SetCas(cas uint64) *GetReplyItem
func (*GetReplyItem) SetFlags ¶
func (item *GetReplyItem) SetFlags(flags uint16) *GetReplyItem
type MetaDeleteCmd ¶
type MetaDeleteCmd struct {
// contains filtered or unexported fields
}
func NewMetaDeleteCmd ¶
func NewMetaDeleteCmd(key string) *MetaDeleteCmd
func (*MetaDeleteCmd) Key ¶
func (cmd *MetaDeleteCmd) Key() string
func (*MetaDeleteCmd) SetCompareCas ¶
func (cmd *MetaDeleteCmd) SetCompareCas(cas uint64) *MetaDeleteCmd
func (*MetaDeleteCmd) SetInvalidateOnOldCas ¶
func (cmd *MetaDeleteCmd) SetInvalidateOnOldCas(v bool) *MetaDeleteCmd
func (*MetaDeleteCmd) SetKeyAsBase64 ¶
func (cmd *MetaDeleteCmd) SetKeyAsBase64(b64 bool) *MetaDeleteCmd
func (*MetaDeleteCmd) SetNoReply ¶
func (cmd *MetaDeleteCmd) SetNoReply(noreply bool) *MetaDeleteCmd
func (*MetaDeleteCmd) SetOpaque ¶
func (cmd *MetaDeleteCmd) SetOpaque(opaque []byte) *MetaDeleteCmd
func (*MetaDeleteCmd) SetUpdateTTL ¶
func (cmd *MetaDeleteCmd) SetUpdateTTL(ttl uint32) *MetaDeleteCmd
type MetaDeleteCmdStatus ¶
type MetaDeleteCmdStatus uint8
const ( MetaDeleteCmdInvalidStatus MetaDeleteCmdStatus = iota MetaDeleteCmdStatusDeleted MetaDeleteCmdStatusExists MetaDeleteCmdStatusNotFound )
type MetaDeleteReply ¶
type MetaDeleteReply struct {
// contains filtered or unexported fields
}
func (*MetaDeleteReply) ReadFrom ¶
func (reply *MetaDeleteReply) ReadFrom(src io.Reader) (int64, error)
func (*MetaDeleteReply) Status ¶
func (reply *MetaDeleteReply) Status() MetaDeleteCmdStatus
type MetaGetCmd ¶
type MetaGetCmd struct {
// contains filtered or unexported fields
}
MetaGetCmd represents the memcached meta get command.
func NewMetaGetCmd ¶
func NewMetaGetCmd(key string) *MetaGetCmd
func (*MetaGetCmd) Key ¶
func (cmd *MetaGetCmd) Key() string
func (*MetaGetCmd) Reset ¶
func (cmd *MetaGetCmd) Reset() *MetaGetCmd
func (*MetaGetCmd) SetKeyAsBase64 ¶
func (cmd *MetaGetCmd) SetKeyAsBase64(b bool) *MetaGetCmd
func (*MetaGetCmd) SetNoReply ¶
func (cmd *MetaGetCmd) SetNoReply(b bool) *MetaGetCmd
func (*MetaGetCmd) SetOpaque ¶
func (cmd *MetaGetCmd) SetOpaque(o []byte) *MetaGetCmd
func (*MetaGetCmd) SetRetrieveCas ¶
func (cmd *MetaGetCmd) SetRetrieveCas(b bool) *MetaGetCmd
func (*MetaGetCmd) SetRetrieveClientFlags ¶
func (cmd *MetaGetCmd) SetRetrieveClientFlags(b bool) *MetaGetCmd
func (*MetaGetCmd) SetRetrieveKey ¶
func (cmd *MetaGetCmd) SetRetrieveKey(b bool) *MetaGetCmd
func (*MetaGetCmd) SetRetrievePreviousHit ¶
func (cmd *MetaGetCmd) SetRetrievePreviousHit(b bool) *MetaGetCmd
func (*MetaGetCmd) SetRetrieveRemainingTTL ¶
func (cmd *MetaGetCmd) SetRetrieveRemainingTTL(b bool) *MetaGetCmd
func (*MetaGetCmd) SetRetrieveSize ¶
func (cmd *MetaGetCmd) SetRetrieveSize(b bool) *MetaGetCmd
func (*MetaGetCmd) SetRetrieveTimeSinceLastAccess ¶
func (cmd *MetaGetCmd) SetRetrieveTimeSinceLastAccess(b bool) *MetaGetCmd
func (*MetaGetCmd) SetRetrieveValue ¶
func (cmd *MetaGetCmd) SetRetrieveValue(b bool) *MetaGetCmd
func (*MetaGetCmd) SetSkipLRUBump ¶
func (cmd *MetaGetCmd) SetSkipLRUBump(b bool) *MetaGetCmd
func (*MetaGetCmd) SetUpdateTTL ¶
func (cmd *MetaGetCmd) SetUpdateTTL(ttl int64) *MetaGetCmd
func (*MetaGetCmd) SetVivifyOnMiss ¶
func (cmd *MetaGetCmd) SetVivifyOnMiss(ttl uint64) *MetaGetCmd
func (*MetaGetCmd) String ¶
func (cmd *MetaGetCmd) String() string
func (*MetaGetCmd) UnmarshalText ¶
func (cmd *MetaGetCmd) UnmarshalText(data []byte) error
type MetaGetReply ¶
type MetaGetReply struct {
// contains filtered or unexported fields
}
func NewMetaGetReply ¶
func NewMetaGetReply() *MetaGetReply
func (*MetaGetReply) IsMiss ¶
func (mr *MetaGetReply) IsMiss() bool
func (*MetaGetReply) Key ¶
func (mr *MetaGetReply) Key() string
Key returns the value associated with the key flag ("k") in the response.
If the base64 flag is toggled, the key is base64 decoded before being returned.
func (*MetaGetReply) SetCas ¶
func (mr *MetaGetReply) SetCas(v uint64) *MetaGetReply
func (*MetaGetReply) SetClientFlags ¶
func (mr *MetaGetReply) SetClientFlags(v uint32) *MetaGetReply
func (*MetaGetReply) SetItemSize ¶
func (mr *MetaGetReply) SetItemSize(v uint64) *MetaGetReply
func (*MetaGetReply) SetKey ¶
func (mr *MetaGetReply) SetKey(s string, b64 bool) *MetaGetReply
SetKey sets the key to be returned with the response using the key flag ("k"). The provided key should always be in its "raw" form (i.e. not base64 encoded).
If b64 is true, the base64 flag ("b") will be set, as well as the key being base64 encoded before being stored in the reply object.
Note that unlike MetaGetCmd, there is no MetaGetReply.SetKeyAsBase64 method.
If s is an empty string, both the key flag ("k") and the base64 flag ("b") will be cleared, regardless of the value of b64.
func (*MetaGetReply) SetKeyAsBase64 ¶
func (mr *MetaGetReply) SetKeyAsBase64(b bool) *MetaGetReply
func (*MetaGetReply) SetMiss ¶
func (mr *MetaGetReply) SetMiss(b bool) *MetaGetReply
func (*MetaGetReply) SetOpaque ¶
func (mr *MetaGetReply) SetOpaque(o []byte) *MetaGetReply
func (*MetaGetReply) SetPreviousHit ¶
func (mr *MetaGetReply) SetPreviousHit(b bool) *MetaGetReply
func (*MetaGetReply) SetRecacheResult ¶
func (mr *MetaGetReply) SetRecacheResult(win bool) *MetaGetReply
func (*MetaGetReply) SetRemainingTTL ¶
func (mr *MetaGetReply) SetRemainingTTL(v int64) *MetaGetReply
func (*MetaGetReply) SetRetrieveKey ¶
func (mr *MetaGetReply) SetRetrieveKey(s string) *MetaGetReply
func (*MetaGetReply) SetStale ¶
func (mr *MetaGetReply) SetStale(b bool) *MetaGetReply
func (*MetaGetReply) SetTimeSinceLastAccess ¶
func (mr *MetaGetReply) SetTimeSinceLastAccess(v uint64) *MetaGetReply
func (*MetaGetReply) SetValue ¶
func (mr *MetaGetReply) SetValue(b []byte) *MetaGetReply
func (*MetaGetReply) Value ¶
func (mr *MetaGetReply) Value() []byte
type MetaSetCmd ¶
type MetaSetCmd struct {
// contains filtered or unexported fields
}
func NewMetaSetCmd ¶
func NewMetaSetCmd(key string, data []byte) *MetaSetCmd
func (*MetaSetCmd) Key ¶
func (cmd *MetaSetCmd) Key() string
func (*MetaSetCmd) SetKeyAsBase64 ¶
func (cmd *MetaSetCmd) SetKeyAsBase64(b64 bool) *MetaSetCmd
func (*MetaSetCmd) SetMode ¶
func (cmd *MetaSetCmd) SetMode(mode MetaSetMode) *MetaSetCmd
func (*MetaSetCmd) SetNoReply ¶
func (cmd *MetaSetCmd) SetNoReply(noreply bool) *MetaSetCmd
func (*MetaSetCmd) SetOpaque ¶
func (cmd *MetaSetCmd) SetOpaque(opaque []byte) *MetaSetCmd
func (*MetaSetCmd) SetRetrieveKey ¶
func (cmd *MetaSetCmd) SetRetrieveKey(v bool) *MetaSetCmd
func (*MetaSetCmd) UnmarshalText ¶
func (cmd *MetaSetCmd) UnmarshalText(data []byte) error
type MetaSetCmdStatus ¶
type MetaSetCmdStatus int
const ( MetaSetCmdStatusInvalid MetaSetCmdStatus = iota // Set operation was successful (command=HD) MetaSetCmdStatusStored // Data _not_ stored, but not because of an error (command=NS) MetaSetCmdStatusNotStored // Under CAS semantics, item has been modified since your // last fetch (as specified by the CAS value. command=EX) MetaSetCmdStatusExists // Under CAS semantics, item did not exist (command=NF) MetaSetCmdStatusNotFound )
type MetaSetMode ¶
type MetaSetMode uint8
const ( MetaSetModeSet MetaSetMode = iota MetaSetModeAdd MetaSetModeAppend MetaSetModePrepend MetaSetModeReplace MetaSetModeMax )
type MetaSetReply ¶
type MetaSetReply struct {
// contains filtered or unexported fields
}
func (*MetaSetReply) Key ¶
func (reply *MetaSetReply) Key() string
func (*MetaSetReply) Status ¶
func (reply *MetaSetReply) Status() MetaSetCmdStatus
type PrependCmd ¶
type PrependCmd struct {
// contains filtered or unexported fields
}
func NewPrependCmd ¶
func NewPrependCmd(key string, value []byte) *PrependCmd
func (*PrependCmd) Reset ¶
func (cmd *PrependCmd) Reset() *PrependCmd
func (*PrependCmd) SetExpires ¶
func (cmd *PrependCmd) SetExpires(expires int64) *storageCmd
func (*PrependCmd) SetNoReply ¶
func (cmd *PrependCmd) SetNoReply(noreply bool) *storageCmd
func (*PrependCmd) UnmarshalText ¶
type ReplaceCmd ¶
type ReplaceCmd struct {
// contains filtered or unexported fields
}
func NewReplaceCmd ¶
func NewReplaceCmd(key string, value []byte) *ReplaceCmd
func (*ReplaceCmd) Reset ¶
func (cmd *ReplaceCmd) Reset() *ReplaceCmd
func (*ReplaceCmd) SetExpires ¶
func (cmd *ReplaceCmd) SetExpires(expires int64) *storageCmd
func (*ReplaceCmd) SetNoReply ¶
func (cmd *ReplaceCmd) SetNoReply(noreply bool) *storageCmd
func (*ReplaceCmd) UnmarshalText ¶
type SetCmd ¶
type SetCmd struct {
// contains filtered or unexported fields
}
func (*SetCmd) SetExpires ¶
func (cmd *SetCmd) SetExpires(expires int64) *storageCmd
func (*SetCmd) SetNoReply ¶
func (cmd *SetCmd) SetNoReply(noreply bool) *storageCmd
func (*SetCmd) UnmarshalText ¶
type SetCmdReply ¶
type SetCmdReply struct {
// contains filtered or unexported fields
}
func (*SetCmdReply) Status ¶
func (cmd *SetCmdReply) Status() SetCmdReplyType
func (*SetCmdReply) UnmarshalText ¶
func (reply *SetCmdReply) UnmarshalText(data []byte) error
type SetCmdReplyType ¶
type SetCmdReplyType uint8
const ( SetCmdReplyInvalid SetCmdReplyType = iota SetCmdReplyStored SetCmdReplyNotStored SetCmdReplyExists SetCmdReplyNotFound SetCmdReplyTypeMax )