|
Phants Client for Redis™*
|
Static Public Member Functions | |
| static BitfieldSubcommand | Get (string type, string offset) |
| static BitfieldSubcommand | Set (string type, string offset, int value) |
| static BitfieldSubcommand | IncrBy (string type, string offset, int increment) |
| static BitfieldSubcommand | Overflow (OverflowType overflowType) |
This class takes a factory method approach to generating subcommands that can be used with the BitField() method. Each of the four methods creates a subcommand object that corresponds to those of the Redis BITFIELD command.
|
inlinestatic |
Returns a GET subcommand object.
The type parameter can optionally be prefixed with an 'i' for signed, or 'u' for unsigned integers (e.g. u8, i16, s64, u63).
| type | Specifies the type and number of bits returned from the bitfield. |
| offset | The offset (int bits) of the integer to return. |
|
inlinestatic |
Returns an INCRBY subcommand object.
The type parameter can optionally be prefixed with an 'i' for signed, or 'u' for unsigned integers (e.g. u8, i16, s64, u63).
| type | Specifies the type and number of bits to increment in the bitfield. |
| offset | The offset (int bits) of the integer to increment. |
| increment | The value added to the integer at offet. |
|
inlinestatic |
Returns an OVERFLOW subcommand object.
| overflowType | The overflow behavior to set (e.g. WRAP, SAT, FAIL). |
|
inlinestatic |
Returns a SET subcommand object.
The type parameter can optionally be prefixed with an 'i' for signed, or 'u' for unsigned integers (e.g. u8, i16, s64, u63).
| type | Specifies the type and number of bits to set in the bitfield. |
| offset | The offset (int bits) of the integer to set. |
| value | The new value to set at offet. |