\lib\srcbase

Summary

Methods
Properties
Constants
useRedis()
connRedis()
setString()
getString()
delString()
setHash()
getHash()
checkHashExist()
setListInHead()
getListAll()
delListVal()
setStringTll()
pushMessage()
No public properties found
No constants found
No protected methods found
$host
$prot
N/A
No private methods found
No private properties found
N/A

Properties

$host

$host : 

Type

$prot

$prot : 

Type

Methods

useRedis()

useRedis() 

userredis

connRedis()

connRedis(  $host,   $prot,   $db) 

redis 数据库操作类 默认db 为0

Parameters

$host
$prot
$db

setString()

setString(  $key,   $value,   $db = "1") 

存入基本数据信息(string)

Parameters

$key
$value
$db

getString()

getString(  $key,   $db = "1") 

取出基本数据

Parameters

$key
$db

delString()

delString(  $key,   $db = "1") 

删除基本数据

Parameters

$key
$db

setHash()

setHash(  $key,   $field,   $value,   $db) 

将数据存入到哈希中

Parameters

$key
$field
$value
$db

getHash()

getHash(  $key,   $field,   $db) 

将数据从哈希中取出来

Parameters

$key
$field
$db

checkHashExist()

checkHashExist(  $key,   $field,   $db) 

检查哈希表是否存在设定的字段

Parameters

$key
$field
$db

setListInHead()

setListInHead(  $key,   $value,   $db) 

将值存入到list头部

Parameters

$key
$value
$db

getListAll()

getListAll(  $key,   $db) 

取出list中所有的值

Parameters

$key
$db

delListVal()

delListVal(  $key,   $field,   $db) 

删除list中值定的值

Parameters

$key
$field
$db

setStringTll()

setStringTll(  $key,   $time,   $db = "1") 

设置key的生存时间

Parameters

$key
$time
$db

pushMessage()

pushMessage(  $value,   $key) 

消息发布

Parameters

$value
$key