Documentation

Application

Interfaces, Classes and Traits

ClientContextInterface
Interface defining a client-side context such as a pipeline or transaction.
ClientInterface
Interface defining a client able to execute commands against Redis.
DistributorInterface
A distributor implements the logic to automatically distribute keys among several nodes for client-side sharding.
HashGeneratorInterface
An hash generator implements the logic used to calculate the hash of a key to distribute operations among Redis nodes.
StrategyInterface
Interface for classes defining the strategy used to calculate an hash out of keys extracted from supported commands.
CommandInterface
Defines an abstraction representing a Redis command.
PrefixableCommandInterface
Defines a command whose keys can be prefixed.
ProcessorInterface
A command processor processes Redis commands before they are sent to Redis.
OptionInterface
Defines an handler used by Predis\Configuration\Options to filter, validate or return default values for a given option.
OptionsInterface
Interface defining a container for client options.
ClusterInterface
Defines a cluster of Redis servers formed by aggregating multiple connection instances to single Redis nodes.
ReplicationInterface
Defines a group of Redis nodes in a master / slave replication setup.
AggregateConnectionInterface
Defines a virtual connection composed of multiple connection instances to single Redis nodes.
CompositeConnectionInterface
Defines a connection to communicate with a single Redis server that leverages an external protocol processor to handle pluggable protocol handlers.
ConnectionInterface
Defines a connection object used to communicate with one or multiple Redis servers.
FactoryInterface
Interface for classes providing a factory of connections to Redis nodes.
NodeConnectionInterface
Defines a connection used to communicate with a single Redis node.
ParametersInterface
Interface defining a container for connection parameters.
ProfileInterface
A profile defines all the features and commands supported by certain versions of Redis. Instances of Predis\Client should use a server profile matching the version of Redis being used.
ProtocolProcessorInterface
Defines a pluggable protocol processor capable of serializing commands and deserializing responses into PHP objects directly from a connection.
RequestSerializerInterface
Defines a pluggable serializer for Redis commands.
ResponseReaderInterface
Defines a pluggable reader capable of parsing responses returned by Redis and deserializing them to PHP objects.
ResponseHandlerInterface
Defines a pluggable handler used to parse a particular type of response.
ErrorInterface
Represents an error returned by Redis (responses identified by "-" in the Redis protocol) during the execution of an operation on the server.
ResponseInterface
Represents a complex response object from Redis.
CDBMS
Class to manage a DataBase in MySql
CMySqlDB
Class to manage a DataBase in MySql
CLogger
CRequest
CResponse
CUser
Class to manage a DataBase in MySql
CBaseController
Class to manage a DataBase in MySql
CBaseModel
CExampleController
Class to manage a DataBase in MySql
CExampleModel
CPageController
Class to manage a DataBase in MySql
CPageModel
ComposerAutoloaderInit043a9a21d7b8820c54a6a9bc7e5b3fd9
ComposerStaticInit043a9a21d7b8820c54a6a9bc7e5b3fd9
ClassLoader
ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
InstalledVersions
BeforeValidException
ExpiredException
SignatureInvalidException
NaiveDistributor
SimpleDebuggableConnection
Standard connection to Redis servers implemented on top of PHP's streams.
EventsListener
IncrementExistingKeysBy
Base class used to implement an higher level abstraction for commands based on Lua scripting with EVAL and EVALSHA.
HashMultipleGetAll
Base class used to implement an higher level abstraction for commands based on Lua scripting with EVAL and EVALSHA.
Autoloader
Implements a lightweight PSR-0 compliant autoloader for Predis.
Client
Client class used for connecting and executing commands on Redis.
ClientException
Exception class that identifies client-side errors.
ClusterStrategy
Common class implementing the logic needed to support clustering strategies.
EmptyRingException
Exception class that identifies empty rings.
HashRing
This class implements an hashring-based distributor that uses the same algorithm of memcache to distribute keys in a cluster using client-side sharding.
KetamaRing
This class implements an hashring-based distributor that uses the same algorithm of libketama to distribute keys in a cluster using client-side sharding.
CRC16
Hash generator implementing the CRC-CCITT-16 algorithm used by redis-cluster.
PredisStrategy
Default cluster strategy used by Predis to handle client-side sharding.
RedisStrategy
Default class used by Predis to calculate hashes out of keys of commands supported by redis-cluster.
CursorBasedIterator
Provides the base implementation for a fully-rewindable PHP iterator that can incrementally iterate over cursor-based collections stored on Redis using the commands in the `SCAN` family.
HashKey
Abstracts the iteration of fields and values of an hash by leveraging the HSCAN command (Redis >= 2.8) wrapped in a fully-rewindable PHP iterator.
Keyspace
Abstracts the iteration of the keyspace on a Redis instance by leveraging the SCAN command (Redis >= 2.8) wrapped in a fully-rewindable PHP iterator.
ListKey
Abstracts the iteration of items stored in a list by leveraging the LRANGE command wrapped in a fully-rewindable PHP iterator.
SetKey
Abstracts the iteration of members stored in a set by leveraging the SSCAN command (Redis >= 2.8) wrapped in a fully-rewindable PHP iterator.
SortedSetKey
Abstracts the iteration of members stored in a sorted set by leveraging the ZSCAN command (Redis >= 2.8) wrapped in a fully-rewindable PHP iterator.
Command
Base class for Redis commands.
ConnectionAuth
Base class for Redis commands.
ConnectionEcho
Base class for Redis commands.
ConnectionPing
Base class for Redis commands.
ConnectionQuit
Base class for Redis commands.
ConnectionSelect
Base class for Redis commands.
GeospatialGeoAdd
Base class for Redis commands.
GeospatialGeoDist
Base class for Redis commands.
GeospatialGeoHash
Base class for Redis commands.
GeospatialGeoPos
Base class for Redis commands.
GeospatialGeoRadius
Base class for Redis commands.
GeospatialGeoRadiusByMember
Base class for Redis commands.
HashDelete
Base class for Redis commands.
HashExists
Base class for Redis commands.
HashGet
Base class for Redis commands.
HashGetAll
Base class for Redis commands.
HashGetMultiple
Base class for Redis commands.
HashIncrementBy
Base class for Redis commands.
HashIncrementByFloat
Base class for Redis commands.
HashKeys
Base class for Redis commands.
HashLength
Base class for Redis commands.
HashScan
Base class for Redis commands.
HashSet
Base class for Redis commands.
HashSetMultiple
Base class for Redis commands.
HashSetPreserve
Base class for Redis commands.
HashStringLength
Base class for Redis commands.
HashValues
Base class for Redis commands.
HyperLogLogAdd
Base class for Redis commands.
HyperLogLogCount
Base class for Redis commands.
HyperLogLogMerge
Base class for Redis commands.
KeyDelete
Base class for Redis commands.
KeyDump
Base class for Redis commands.
KeyExists
Base class for Redis commands.
KeyExpire
Base class for Redis commands.
KeyExpireAt
Base class for Redis commands.
KeyKeys
Base class for Redis commands.
KeyMigrate
Base class for Redis commands.
KeyMove
Base class for Redis commands.
KeyPersist
Base class for Redis commands.
KeyPreciseExpire
Base class for Redis commands.
KeyPreciseExpireAt
Base class for Redis commands.
KeyPreciseTimeToLive
Base class for Redis commands.
KeyRandom
Base class for Redis commands.
KeyRename
Base class for Redis commands.
KeyRenamePreserve
Base class for Redis commands.
KeyRestore
Base class for Redis commands.
KeyScan
Base class for Redis commands.
KeySort
Base class for Redis commands.
KeyTimeToLive
Base class for Redis commands.
KeyType
Base class for Redis commands.
ListIndex
Base class for Redis commands.
ListInsert
Base class for Redis commands.
ListLength
Base class for Redis commands.
ListPopFirst
Base class for Redis commands.
ListPopFirstBlocking
Base class for Redis commands.
ListPopLast
Base class for Redis commands.
ListPopLastBlocking
Base class for Redis commands.
ListPopLastPushHead
Base class for Redis commands.
ListPopLastPushHeadBlocking
Base class for Redis commands.
ListPushHead
Base class for Redis commands.
ListPushHeadX
Base class for Redis commands.
ListPushTail
Base class for Redis commands.
ListPushTailX
Base class for Redis commands.
ListRange
Base class for Redis commands.
ListRemove
Base class for Redis commands.
ListSet
Base class for Redis commands.
ListTrim
Base class for Redis commands.
KeyPrefixProcessor
Command processor capable of prefixing keys stored in the arguments of Redis commands supported.
ProcessorChain
Default implementation of a command processors chain.
PubSubPublish
Base class for Redis commands.
PubSubPubsub
Base class for Redis commands.
PubSubSubscribe
Base class for Redis commands.
PubSubSubscribeByPattern
Base class for Redis commands.
PubSubUnsubscribe
Base class for Redis commands.
PubSubUnsubscribeByPattern
Base class for Redis commands.
RawCommand
Class for generic "anonymous" Redis commands.
ScriptCommand
Base class used to implement an higher level abstraction for commands based on Lua scripting with EVAL and EVALSHA.
ServerBackgroundRewriteAOF
Base class for Redis commands.
ServerBackgroundSave
Base class for Redis commands.
ServerClient
Base class for Redis commands.
ServerCommand
Base class for Redis commands.
ServerConfig
Base class for Redis commands.
ServerDatabaseSize
Base class for Redis commands.
ServerEval
Base class for Redis commands.
ServerEvalSHA
Base class for Redis commands.
ServerFlushAll
Base class for Redis commands.
ServerFlushDatabase
Base class for Redis commands.
ServerInfo
Base class for Redis commands.
ServerInfoV26x
Base class for Redis commands.
ServerLastSave
Base class for Redis commands.
ServerMonitor
Base class for Redis commands.
ServerObject
Base class for Redis commands.
ServerSave
Base class for Redis commands.
ServerScript
Base class for Redis commands.
ServerSentinel
Base class for Redis commands.
ServerShutdown
Base class for Redis commands.
ServerSlaveOf
Base class for Redis commands.
ServerSlowlog
Base class for Redis commands.
ServerTime
Base class for Redis commands.
SetAdd
Base class for Redis commands.
SetCardinality
Base class for Redis commands.
SetDifference
Base class for Redis commands.
SetDifferenceStore
Base class for Redis commands.
SetIntersection
Base class for Redis commands.
SetIntersectionStore
Base class for Redis commands.
SetIsMember
Base class for Redis commands.
SetMembers
Base class for Redis commands.
SetMove
Base class for Redis commands.
SetPop
Base class for Redis commands.
SetRandomMember
Base class for Redis commands.
SetRemove
Base class for Redis commands.
SetScan
Base class for Redis commands.
SetUnion
Base class for Redis commands.
SetUnionStore
Base class for Redis commands.
StringAppend
Base class for Redis commands.
StringBitCount
Base class for Redis commands.
StringBitField
Base class for Redis commands.
StringBitOp
Base class for Redis commands.
StringBitPos
Base class for Redis commands.
StringDecrement
Base class for Redis commands.
StringDecrementBy
Base class for Redis commands.
StringGet
Base class for Redis commands.
StringGetBit
Base class for Redis commands.
StringGetMultiple
Base class for Redis commands.
StringGetRange
Base class for Redis commands.
StringGetSet
Base class for Redis commands.
StringIncrement
Base class for Redis commands.
StringIncrementBy
Base class for Redis commands.
StringIncrementByFloat
Base class for Redis commands.
StringPreciseSetExpire
Base class for Redis commands.
StringSet
Base class for Redis commands.
StringSetBit
Base class for Redis commands.
StringSetExpire
Base class for Redis commands.
StringSetMultiple
Base class for Redis commands.
StringSetMultiplePreserve
Base class for Redis commands.
StringSetPreserve
Base class for Redis commands.
StringSetRange
Base class for Redis commands.
StringStrlen
Base class for Redis commands.
StringSubstr
Base class for Redis commands.
TransactionDiscard
Base class for Redis commands.
TransactionExec
Base class for Redis commands.
TransactionMulti
Base class for Redis commands.
TransactionUnwatch
Base class for Redis commands.
TransactionWatch
Base class for Redis commands.
ZSetAdd
Base class for Redis commands.
ZSetCardinality
Base class for Redis commands.
ZSetCount
Base class for Redis commands.
ZSetIncrementBy
Base class for Redis commands.
ZSetIntersectionStore
Base class for Redis commands.
ZSetLexCount
Base class for Redis commands.
ZSetRange
Base class for Redis commands.
ZSetRangeByLex
Base class for Redis commands.
ZSetRangeByScore
Base class for Redis commands.
ZSetRank
Base class for Redis commands.
ZSetRemove
Base class for Redis commands.
ZSetRemoveRangeByLex
Base class for Redis commands.
ZSetRemoveRangeByRank
Base class for Redis commands.
ZSetRemoveRangeByScore
Base class for Redis commands.
ZSetReverseRange
Base class for Redis commands.
ZSetReverseRangeByLex
Base class for Redis commands.
ZSetReverseRangeByScore
Base class for Redis commands.
ZSetReverseRank
Base class for Redis commands.
ZSetScan
Base class for Redis commands.
ZSetScore
Base class for Redis commands.
ZSetUnionStore
Base class for Redis commands.
CommunicationException
Base exception class for network-related errors.
ClusterOption
Configures an aggregate connection used for clustering multiple Redis nodes using various implementations with different algorithms or strategies.
ConnectionFactoryOption
Configures a connection factory used by the client to create new connection instances for single Redis nodes.
ExceptionsOption
Configures whether consumers (such as the client) should throw exceptions on Redis errors (-ERR responses) or just return instances of error responses.
Options
Manages Predis options with filtering, conversion and lazy initialization of values using a mini-DI container approach.
PrefixOption
Configures a command processor that apply the specified prefix string to a series of Redis commands considered prefixable.
ProfileOption
Configures the server profile to be used by the client to create command instances depending on the specified version of the Redis server.
ReplicationOption
Configures an aggregate connection used for master/slave replication among multiple Redis nodes.
AbstractConnection
Base class with the common logic used by connection classes to communicate with Redis.
MasterSlaveReplication
Aggregate connection handling replication of Redis nodes configured in a single master / multiple slaves setup.
PredisCluster
Abstraction for a cluster of aggregate connections to various Redis servers implementing client-side sharding based on pluggable distribution strategies.
RedisCluster
Abstraction for a Redis-backed cluster of nodes (Redis >= 3.0.0).
SentinelReplication
CompositeStreamConnection
Connection abstraction to Redis servers based on PHP's stream that uses an external protocol processor defining the protocol used for the communication.
ConnectionException
Exception class that identifies connection-related errors.
Factory
Standard connection factory for creating connections to Redis nodes.
Parameters
Container for connection parameters used to initialize connections to Redis.
PhpiredisSocketConnection
This class provides the implementation of a Predis connection that uses the PHP socket extension for network communication and wraps the phpiredis C extension (PHP bindings for hiredis) to parse the Redis protocol.
PhpiredisStreamConnection
This class provides the implementation of a Predis connection that uses PHP's streams for network communication and wraps the phpiredis C extension (PHP bindings for hiredis) to parse and serialize the Redis protocol.
StreamConnection
Standard connection to Redis servers implemented on top of PHP's streams.
WebdisConnection
This class implements a Predis connection that actually talks with Webdis instead of connecting directly to Redis. It relies on the cURL extension to communicate with the web server and the phpiredis extension to parse the protocol for responses returned in the http response bodies.
Consumer
Redis MONITOR consumer.
NotSupportedException
Exception class thrown when trying to use features not supported by certain classes or abstractions of Predis.
Atomic
Command pipeline wrapped into a MULTI / EXEC transaction.
ConnectionErrorProof
Command pipeline that does not throw exceptions on connection errors, but returns the exception instances as the rest of the response elements.
FireAndForget
Command pipeline that writes commands to the servers but discards responses.
Pipeline
Implementation of a command pipeline in which write and read operations of Redis commands are pipelined to alleviate the effects of network round-trips.
PredisException
Base exception class for Predis-related errors.
Factory
Factory class for creating profile instances from strings.
RedisProfile
Base class implementing common functionalities for Redis server profiles.
RedisUnstable
Server profile for the current unstable version of Redis.
RedisVersion200
Server profile for Redis 2.0.
RedisVersion220
Server profile for Redis 2.2.
RedisVersion240
Server profile for Redis 2.4.
RedisVersion260
Server profile for Redis 2.6.
RedisVersion280
Server profile for Redis 2.8.
RedisVersion300
Server profile for Redis 3.0.
RedisVersion320
Server profile for Redis 3.0.
ProtocolException
Exception used to indentify errors encountered while parsing the Redis wire protocol.
CompositeProtocolProcessor
Composite protocol processor for the standard Redis wire protocol using pluggable handlers to serialize requests and deserialize responses.
BulkResponse
Handler for the bulk response type in the standard Redis wire protocol.
ErrorResponse
Handler for the error response type in the standard Redis wire protocol.
IntegerResponse
Handler for the integer response type in the standard Redis wire protocol.
MultiBulkResponse
Handler for the multibulk response type in the standard Redis wire protocol.
StatusResponse
Handler for the status response type in the standard Redis wire protocol. It translates certain classes of status response to PHP objects or just returns the payload as a string.
StreamableMultiBulkResponse
Handler for the multibulk response type in the standard Redis wire protocol.
ProtocolProcessor
Protocol processor for the standard Redis wire protocol.
RequestSerializer
Request serializer for the standard Redis wire protocol.
ResponseReader
Response reader for the standard Redis wire protocol.
AbstractConsumer
Base implementation of a PUB/SUB consumer abstraction based on PHP iterators.
Consumer
PUB/SUB consumer abstraction.
DispatcherLoop
Method-dispatcher loop built around the client-side abstraction of a Redis PUB / SUB context.
MissingMasterException
Exception class that identifies when master is missing in a replication setup.
ReplicationStrategy
Defines a strategy for master/slave replication.
RoleException
Exception class that identifies a role mismatch when connecting to node managed by redis-sentinel.
Error
Represents an error returned by Redis (-ERR responses) during the execution of a command on the server.
MultiBulk
Streamable multibulk response.
MultiBulkIterator
Iterator that abstracts the access to multibulk responses allowing them to be consumed in a streamable fashion without keeping the whole payload in memory.
MultiBulkTuple
Outer iterator consuming streamable multibulk responses by yielding tuples of keys and values.
ServerException
Exception class that identifies server-side Redis errors.
Status
Represents a status response returned by Redis.
Handler
Session handler class that relies on Predis\Client to store PHP's sessions data into one or multiple Redis servers.
AbortedMultiExecException
Exception class that identifies a MULTI / EXEC transaction aborted by Redis.
MultiExec
Client-side abstraction of a Redis transaction based on MULTI / EXEC.
MultiExecState
Utility class used to track the state of a MULTI / EXEC transaction.

Table of Contents

CACHE_MAX_SIZE_PER_ELEMENT  = 64 * 1024
DressAPI
CACHE_PATH  = '/dev/shm/'
CREATION_DATE  = 'creation_date'
DB_HOST  = 'localhost'
DB_HOST  = 'localhost'
DB_NAME  = 'cardcomics'
DB_NAME  = 'dressapi-test'
DB_PASSWORD  = ''
DB_PASSWORD  = ''
DB_PORT  = 3306
DB_PORT  = 3306
DB_USERNAME  = 'root'
DB_USERNAME  = 'root'
DBMS_TYPE  = 'MySql'
DEFAULT_FORMAT_OUTPUT  = 'json'
DEFAULT_ITEMS_PER_PAGE  = 2
DEFAULT_ORDER  = 'DESC'
DOMAIN_NAME  = 'dressapi.com'
DOMAIN_NAME  = 'dressapi.com'
DOMAIN_NAME  = 'DressApi.com'
ITEM_ID  = 'id'
LOG_LEVEL_MIN  = 'info'
MAX_ITEMS_PER_PAGE  = 200
PASSWORD_ENC_ALGORITHM  = 'tiger192,4'
PWD_CRYPT  = '@AShHK#Dfjdx45'
REDIS_HOST  = '127.0.0.1'
REDIS_PASSWORD  = "change me"
REDIS_PORT  = 6379
REDIS_SCHEME  = 'tcp'
REDIS_SELECTION  = 0
DressAPI
REDIS_USERNAME  = "change me"
RELATED_FIELD_NAMES  = [ 'page' => ['title', 'creation_date'], // the value can be an array of strings 'contact' => ['email', 'city'], '*' => 'name', ]
RELATED_TABLE_ID  = 'id_[related_table]'
REQUIRED_ITEMS  = ['student' => [ // item=>rules ['periodicy' => '/[daily|weekly|monthly]/'], ['name' => 'age', 'min' => 17], ['name' => 'vote', 'min' => 18, 'max' => 30], ]]
SAME_TABLE_ID  = 'parent'
SECRET_KEY  = 'bGS6lzFqvvSQ8ALbOxatm7/Vk7mLQyzqaS34Q4oR1ew='
TOKEN_DURATION  = '2 months'
TOKEN_ENC_ALGORITHM  = 'HS512'
UPLOAD_EXT_ACCEPTED  = ['doc', 'docx', 'pdf', 'odf', 'pptx']
UPLOAD_FILE_PATH  = '/var/www/upload/'
USER_ITEM_ID  = 'id'
USER_ITEM_PASSWORD  = 'pwd'
USER_ITEM_USERNAME  = 'username'
USER_TABLE  = 'user'
includeFile()  : mixed
Scope isolated include.
redis_version()  : mixed
zpop()  : mixed

Constants

CACHE_MAX_SIZE_PER_ELEMENT

DressAPI

public mixed CACHE_MAX_SIZE_PER_ELEMENT = 64 * 1024
Tags
version
1.0
license

This file is under Apache 2.0 license

author

Tufano Pasquale

copyright

Tufano Pasquale

url

https://dressapi.com

Config definitions for Generic Cache

CACHE_PATH

public mixed CACHE_PATH = '/dev/shm/'

CREATION_DATE

public mixed CREATION_DATE = 'creation_date'

DB_HOST

public mixed DB_HOST = 'localhost'

DB_HOST

public mixed DB_HOST = 'localhost'

DB_NAME

public mixed DB_NAME = 'cardcomics'

DB_NAME

public mixed DB_NAME = 'dressapi-test'

DB_PASSWORD

public mixed DB_PASSWORD = ''

DB_PASSWORD

public mixed DB_PASSWORD = ''

DB_PORT

public mixed DB_PORT = 3306

DB_PORT

public mixed DB_PORT = 3306

DB_USERNAME

public mixed DB_USERNAME = 'root'

DB_USERNAME

public mixed DB_USERNAME = 'root'

DBMS_TYPE

public mixed DBMS_TYPE = 'MySql'

DEFAULT_FORMAT_OUTPUT

public mixed DEFAULT_FORMAT_OUTPUT = 'json'

DEFAULT_ITEMS_PER_PAGE

public mixed DEFAULT_ITEMS_PER_PAGE = 2

DEFAULT_ORDER

public mixed DEFAULT_ORDER = 'DESC'

DOMAIN_NAME

public mixed DOMAIN_NAME = 'dressapi.com'

DOMAIN_NAME

public mixed DOMAIN_NAME = 'DressApi.com'

ITEM_ID

public mixed ITEM_ID = 'id'

LOG_LEVEL_MIN

public mixed LOG_LEVEL_MIN = 'info'

MAX_ITEMS_PER_PAGE

public mixed MAX_ITEMS_PER_PAGE = 200

PASSWORD_ENC_ALGORITHM

public mixed PASSWORD_ENC_ALGORITHM = 'tiger192,4'

PWD_CRYPT

public mixed PWD_CRYPT = '@AShHK#Dfjdx45'

REDIS_PASSWORD

public mixed REDIS_PASSWORD = "change me"

REDIS_SELECTION

DressAPI

public mixed REDIS_SELECTION = 0
Tags
version
1.0
license

This file is under Apache 2.0 license

author

Tufano Pasquale

copyright

Tufano Pasquale

url

https://dressapi.com

Config definitions for Redis Cache

REDIS_USERNAME

public mixed REDIS_USERNAME = "change me"
public mixed RELATED_FIELD_NAMES = [ 'page' => ['title', 'creation_date'], // the value can be an array of strings 'contact' => ['email', 'city'], '*' => 'name', ]
public mixed RELATED_TABLE_ID = 'id_[related_table]'

REQUIRED_ITEMS

public mixed REQUIRED_ITEMS = ['student' => [ // item=>rules ['periodicy' => '/[daily|weekly|monthly]/'], ['name' => 'age', 'min' => 17], ['name' => 'vote', 'min' => 18, 'max' => 30], ]]

SAME_TABLE_ID

public mixed SAME_TABLE_ID = 'parent'

SECRET_KEY

public mixed SECRET_KEY = 'bGS6lzFqvvSQ8ALbOxatm7/Vk7mLQyzqaS34Q4oR1ew='

TOKEN_DURATION

public mixed TOKEN_DURATION = '2 months'

TOKEN_ENC_ALGORITHM

public mixed TOKEN_ENC_ALGORITHM = 'HS512'

UPLOAD_EXT_ACCEPTED

public mixed UPLOAD_EXT_ACCEPTED = ['doc', 'docx', 'pdf', 'odf', 'pptx']

UPLOAD_FILE_PATH

public mixed UPLOAD_FILE_PATH = '/var/www/upload/'

USER_ITEM_ID

public mixed USER_ITEM_ID = 'id'

USER_ITEM_PASSWORD

public mixed USER_ITEM_PASSWORD = 'pwd'

USER_ITEM_USERNAME

public mixed USER_ITEM_USERNAME = 'username'

USER_TABLE

public mixed USER_TABLE = 'user'

Functions

includeFile()

Scope isolated include.

includeFile(mixed $file) : mixed

Prevents access to $this/self from included files.

Parameters
$file : mixed
Return values
mixed

redis_version()

redis_version(mixed $info) : mixed
Parameters
$info : mixed
Return values
mixed

zpop()

zpop(mixed $client, mixed $key) : mixed
Parameters
$client : mixed
$key : mixed
Return values
mixed

Search results