Phants Client for Redis™*
Public Member Functions | List of all members
SetOptions Class Reference

Public Member Functions

void SetExpirationSeconds (long seconds)
 
void SetExpirationMilliseconds (long milliseconds)
 
void ClearExpiration ()
 
void SetExistsOption (ExistsOption option)
 
void ClearExistsOption ()
 

Detailed Description

Options class used by the Set() method.

Member Function Documentation

void ClearExistsOption ( )
inline

Clears/unsets any key existence modifiers that have been set.

Both the NX and XX modifiers will be omitted from the command.

void ClearExpiration ( )
inline

Clears/unsets any expiration modifiers that have been set.

Both the EX and PX modifiers will be omitted from the command.

void SetExistsOption ( ExistsOption  option)
inline

Sets the NX or XX modifier.

Note: the NX and XX modifiers are mutually exclusive.

Parameters
optionThe key existence modifier.
void SetExpirationMilliseconds ( long  milliseconds)
inline

Sets the PX modifier.

Note: the EX and PX modifiers are mutually exclusive.

Parameters
millisecondsThe expiration value, in milliseconds.
void SetExpirationSeconds ( long  seconds)
inline

Sets the EX modifier.

Note: the EX and PX modifiers are mutually exclusive.

Parameters
secondsThe expiration value, in seconds.

The documentation for this class was generated from the following file: