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

Static Public Member Functions

static ClientKillFilter IpPortFilter (string ip, int port)
 
static ClientKillFilter ClientIdFilter (long clientId)
 
static ClientKillFilter ClassTypeFilter (ClientKillClassType classType)
 
static ClientKillFilter SkipMeFilter (bool skipMe)
 

Detailed Description

This class takes a factory method approach to generating filters that can be used with the ClientKill(IntegerSink, params ClientKillFilter[]) method, which supports multiple CLIENT KILL filters in one command.

Member Function Documentation

static ClientKillFilter ClassTypeFilter ( ClientKillClassType  classType)
inlinestatic

Parameters
classTypeClass Type (e.g. normal, master, slave, pubsub) of the client to kill.
static ClientKillFilter ClientIdFilter ( long  clientId)
inlinestatic

Parameters
clientIdClient ID of the client to kill.
static ClientKillFilter IpPortFilter ( string  ip,
int  port 
)
inlinestatic

Parameters
ipIP address of the client to kill.
portPort of the client to kill.
static ClientKillFilter SkipMeFilter ( bool  skipMe)
inlinestatic

Parameters
skipMeOption specifying whether the calling client should be skipped if it matches any of the kill filters.

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