|
MemCacheClient
|
Input and output structure for most requests to the server. More...
#include <MemCacheClient.h>
Classes | |
| struct | Sort |
| Sort the requests into server order. More... | |
Public Member Functions | |
| MemRequest () | |
| constructor | |
| void | Clear () |
| Clear the structure in preparation for a new request. | |
Public Attributes | |
| Server * | mServer |
| sort requests into server order | |
| unsigned | mService |
| required service for this request. Set to a specific service to restrict the used server to only a server providing that service. | |
| string_t | mKey |
| The request key. | |
| unsigned int | mFlags |
| Flags for the request. | |
| time_t | mExpiry |
| Expiry time for the data. | |
| uint64_t | mCas |
| CAS value returned by Gets and sent by CheckSet. | |
| MCResult | mResult |
| Result of a request. | |
| ReadWriteBuffer | mData |
| Data to be sent to the server in a storage request, or data returned from the server for get requests. | |
| void * | mContext |
| User managed context for this request. | |
Input and output structure for most requests to the server.
Definition at line 150 of file MemCacheClient.h.
Expiry time for the data.
This is used only by storage requests. The expiry time is in seconds. 0 = no expiry. 1..2592000 (30 days) = expiry time relative to now. All other values are an explicit time_t value.
Definition at line 197 of file MemCacheClient.h.
| unsigned int MemCacheClient::MemRequest::mFlags |
Flags for the request.
These flags will be sent to the server when using one of the storage requests and returned with a get request. The flags are not used by MemCacheClient.
Definition at line 189 of file MemCacheClient.h.
Referenced by MemCacheClient::HandleGetResponse().
The request key.
Set this value to the key that should be used for the request. It will not be modified by MemCacheClient.
Definition at line 182 of file MemCacheClient.h.
Referenced by MemCacheClient::Combine(), and MemCacheClient::Store().
Result of a request.
Set this to MCERR_NOREPLY prior to calling the function if a reply isn't required. Any other value will request a reply from the server and return the result.
Definition at line 208 of file MemCacheClient.h.
Referenced by MemCacheClient::Combine(), MemCacheClient::HandleDelResponse(), MemCacheClient::HandleGetResponse(), MemCacheClient::HandleStoreResponse(), and MemCacheClient::Store().
sort requests into server order
server that will be used for this request
Definition at line 152 of file MemCacheClient.h.
Referenced by MemCacheClient::Combine(), MemCacheClient::MemRequest::Sort::operator()(), and MemCacheClient::Store().
1.7.3