update : 2015.11.03
php.shukuma.com
|
The TokyoTyrant class
The TokyoTyrant class
(PECL tokyo_tyrant >= 0.1.0)
소개
The main Tokyo Tyrant class
클래스 개요
TokyoTyrant
{
public number add
( string $key
, number $increment
[, int $type = 0
] )
public TokyoTyrant connect
( string $host
[, int $port = TokyoTyrant::RDBDEF_PORT
[, array $options
]] )
public __construct
([ string $host
[, int $port = TokyoTyrant::RDBDEF_PORT
[, array $options
]]] )
public TokyoTyrant copy
( string $path
)
public string ext
( string $name
, int $options
, string $key
, string $value
)
public array fwmKeys
( string $prefix
, int $max_recs
)
public TokyoTyrant put
( mixed $keys
[, string $value = NULL
] )
public TokyoTyrant putCat
( mixed $keys
[, string $value
] )
public TokyoTyrant putKeep
( mixed $keys
[, string $value
] )
public TokyoTyrant putNr
( mixed $keys
[, string $value = NULL
] )
public mixed putShl
( string $key
, string $value
, int $width
)
public mixed restore
( string $log_dir
, int $timestamp
[, bool $check_consistency = true
] )
public mixed setMaster
( string $host
, int $port
, int $timestamp
[, bool $check_consistency = true
] )
public int size
( string $key
)
public array stat
( void
)
public mixed sync
( void
)
public TokyoTyrant tune
( float $timeout
[, int $options = TokyoTyrant::RDBT_RECON
] )
}
예약 상수
TokyoTyrant Constants
TokyoTyrant::RDBDEF_PORT
-
The default port of the Tokyo Tyrant database
TokyoTyrant::RDBQC_STREQ
-
string is equal to
TokyoTyrant::RDBQC_STRINC
-
string is included in
TokyoTyrant::RDBQC_STRBW
-
string begins with
TokyoTyrant::RDBQC_STREW
-
string ends with
TokyoTyrant::RDBQC_STRAND
-
string includes all tokens in
TokyoTyrant::RDBQC_STROR
-
string includes at least one token in
TokyoTyrant::RDBQC_STROREQ
-
string is equal to at least one token in
TokyoTyrant::RDBQC_STRRX
-
string matches regular expressions of
TokyoTyrant::RDBQC_NUMEQ
-
number is equal to
TokyoTyrant::RDBQC_NUMGT
-
number is greater than
TokyoTyrant::RDBQC_NUMGE
-
number is greater than or equal to
TokyoTyrant::RDBQC_NUMLT
-
number is less than
TokyoTyrant::RDBQC_NUMLE
-
number is less than or equal to
TokyoTyrant::RDBQC_NUMBT
-
number is between two tokens of
TokyoTyrant::RDBQC_NUMOREQ
-
number is equal to at least one token in
TokyoTyrant::RDBQC_NEGATE
-
negation flag
TokyoTyrant::RDBQC_NOIDX
-
no index flag
TokyoTyrant::RDBQO_STRASC
-
string ascending
TokyoTyrant::RDBQO_STRDESC
-
string descending
TokyoTyrant::RDBQO_NUMASC
-
number ascending
TokyoTyrant::RDBQO_NUMDESC
-
number descending
TokyoTyrant::RDBIT_LEXICAL
-
lexical string
TokyoTyrant::RDBIT_DECIMAL
-
decimal string
TokyoTyrant::RDBIT_TOKEN
-
token inverted index (Tokyo Tyrant >= 1.1.29)
TokyoTyrant::RDBIT_QGRAM
-
QGRAM inverted index (Tokyo Tyrant >= 1.1.29)
TokyoTyrant::RDBIT_OPT
-
optimize
TokyoTyrant::RDBIT_VOID
-
void
TokyoTyrant::RDBIT_KEEP
-
keep existing index
TokyoTyrant::RDBQCFTS_PH
-
full-text search with the phrase of (Tokyo Tyrant >= 1.1.29)
TokyoTyrant::RDBQCFTS_AND
-
full-text search with all tokens in (Tokyo Tyrant >= 1.1.29)
TokyoTyrant::RDBQCFTS_OR
-
full-text search with at least one token in (Tokyo Tyrant >= 1.1.29)
TokyoTyrant::RDBQCFTS_EX
-
full-text search with the compound expression of (Tokyo Tyrant >= 1.1.29)
TokyoTyrant::RDBQCFTS_AND
-
Metasearch union between records (Tokyo Tyrant >= 1.1.33)
TokyoTyrant::RDBQCFTS_OR
-
Metasearch intersection between records (Tokyo Tyrant >= 1.1.33)
TokyoTyrant::RDBQCFTS_EX
-
Metasearch difference between records (Tokyo Tyrant >= 1.1.33)
TokyoTyrant::RDBT_RECON
-
Whether to reconnect on connection failure.
It is recommended to have this parameter on for persistent connections
TokyoTyrant::RDBXOLCK_REC
-
record locking
TokyoTyrant::RDBXOLCK_GLB
-
global locking
TokyoTyrant::RDBREC_INT
-
record type int
TokyoTyrant::RDBREC_DBL
-
record type float (double)
TokyoTyrant::TTE_SUCCESS
-
success
TokyoTyrant::TTE_INVALID
-
invalid operation
TokyoTyrant::TTE_NOHOST
-
host not found
TokyoTyrant::TTE_REFUSED
-
connection refused
TokyoTyrant::TTE_SEND
-
send error
TokyoTyrant::TTE_RECV
-
recv error
TokyoTyrant::TTE_KEEP
-
record exist
TokyoTyrant::TTE_NOREC
-
no record found
TokyoTyrant::TTE_MISC
-
miscellaneous error
Table of Contents
|
|