includes/class/Cache.class.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Broker
Package
Broker  

\Broker\Cache

Package: Broker
Cache
Parent(s)
\Broker\Database
Inherited_from
\Broker\Database  

Properties

>VPropertyprivatestring $classname
Classname
Details
Type
string
>VPropertypublicobject $configuration
Configuration
Details
Type
object
>VPropertypublic\PDO $database
Database
Details
Type
\PDO
>VPropertypublicstring $filename
Filename
Details
Type
string
>VPropertyprivate\Broker\number $hardlimit = 1000
Hardlimit
Default value1000Details
Type
\Broker\number
>VPropertyprivate\Broker\number $lifetime = 3000
Lifetime
Default value3000Details
Type
\Broker\number
>VPropertyprivate\Broker\number $softlimit = 800
Softlimit
Default value800Details
Type
\Broker\number
>VPropertyprivate\Broker\number $timelimit = 60
Timelimit
Default value60Details
Type
\Broker\number

Methods

methodpublic__construct(string $directory, object $configuration) : void

Constructor

Parameters
NameTypeDescription
$directorystring
$configurationobject
methodpublic__construct(string $directory, object $configuration, string $classname) : void
inherited

Constructor

Inherited from:
Parameters
NameTypeDescription
$directorystring
$configurationobject
$classnamestring
methodpubliccheck(string $configuration, string $url, string $request) : array

Check

Parameters
NameTypeDescription
$configurationstring
$urlstring
$requeststring
Returns
TypeDescription
array
methodpublicclean() : void

Clean

methodpubliccreate(string $configuration, string $url, string $request, string $requestAddition, object $response) : void

Create

Parameters
NameTypeDescription
$configurationstring
$urlstring
$requeststring
$requestAdditionstring
$responseobject
methodprivatecreateHash(string $configuration, string $url, string $request) : string
static

Create hash

Parameters
NameTypeDescription
$configurationstring
$urlstring
$requeststring
Returns
TypeDescription
string
methodpublicdelete(string $hash) : void

Delete

Parameters
NameTypeDescription
$hashstring
methodpublicerrorCheck(string $source, \PDOStatement $query, boolean $removeDatabase) : void
inherited

Check for errors

Inherited from:
Parameters
NameTypeDescription
$sourcestring
$query\PDOStatement
$removeDatabaseboolean
methodpublicget(string $hash) : array

Get

Parameters
NameTypeDescription
$hashstring
Returns
TypeDescription
array
methodpublicgetList(\Broker\number $start, \Broker\number $number) : array

Get list

Parameters
NameTypeDescription
$start\Broker\number
$number\Broker\number
Returns
TypeDescription
array
methodprivategetSize() : \Broker\number

Get number

Returns
TypeDescription
\Broker\number
methodpublicinit() : void

Init

methodpublicinit() : void
abstractinherited

Init

Inherited from:
methodpublicnumber() : \Broker\number
inherited

Get number

Inherited from:
Returns
TypeDescription
\Broker\number
methodpublicreset() : void
inherited

Reset

Inherited from:
Documentation was generated by phpDocumentor 2.8.5.