\DtApp\ThinkLibrary\cacheMysql

缓存数据库驱动 Class Mysql

Summary

Methods
Properties
Constants
name()
expire()
set()
get()
delete()
update()
inc()
dec()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
judge()
$table
$cache_name
$cache_expire
N/A

Properties

$table

$table : 

Type

$cache_name

$cache_name : 

Type

$cache_expire

$cache_expire : 

Type

Methods

name()

name(string  $cache_name) : $this

名称

Parameters

string $cache_name

Returns

$this

expire()

expire(integer  $cache_expire) : $this

过期时间

Parameters

integer $cache_expire

Returns

$this

set()

set(  $cache_value) : boolean

设置

Parameters

$cache_value

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

boolean

get()

get() : mixed

获取

Throws

\DtApp\ThinkLibrary\exception\DtaException

Returns

mixed

delete()

delete() : boolean

删除

Throws

\DtApp\ThinkLibrary\exception\DtaException
\think\db\exception\DbException

Returns

boolean

update()

update(  $cache_value) : boolean

更新

Parameters

$cache_value

Throws

\DtApp\ThinkLibrary\exception\DtaException
\think\db\exception\DbException

Returns

boolean

inc()

inc(integer  $int = 1) : boolean

自增

Parameters

integer $int

Throws

\DtApp\ThinkLibrary\exception\DtaException
\think\db\exception\DbException

Returns

boolean

dec()

dec(integer  $int = 1) : boolean

自减

Parameters

integer $int

Throws

\DtApp\ThinkLibrary\exception\DtaException
\think\db\exception\DbException

Returns

boolean

judge()

judge() 

Throws

\DtApp\ThinkLibrary\exception\DtaException