phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: Simplecache

Source Location: /objects.php

Class Simplecache

Class Overview

A Class that provides for very simple, in-memory caching.

Located in /objects.php [line 3147]



		
				Author(s):
		
  • Bob, The PivotX dev. Team.
Information Tags:

Properties

Methods

[ Top ]
Property Summary
mixed   $cache  
mixed   $itemlimit  
mixed   $keepstats  
mixed   $memlimit  
mixed   $stats  

[ Top ]
Method Summary
Simplecache   __construct()  
void   clear()  
mixed   get()   Get a single item from the cache. Returns the value on success, or false when it's a miss. So, storing booleans in the cache isn't very convenient.
bool   set()   Set a single item in the cache
bool   setMultiple()   Set multiple items in the cache
array   stats()   Return some basic statistics for the cache..
void   trim()   Trims the cache, if it's getting too large.

[ Top ]
Properties
mixed   $cache [line 3149]

[ Top ]
mixed   $itemlimit [line 3152]

[ Top ]
mixed   $keepstats [line 3151]

[ Top ]
mixed   $memlimit [line 3153]

[ Top ]
mixed   $stats [line 3150]

[ Top ]
Methods
Constructor __construct  [line 3155]

  Simplecache __construct( )



[ Top ]
clear  [line 3319]

  void clear( )



[ Top ]
get  [line 3245]

  mixed get( [string $type = "general"], string $key  )

Get a single item from the cache. Returns the value on success, or false when it's a miss. So, storing booleans in the cache isn't very convenient.

Parameters:
string   $type: 
string   $key: 


[ Top ]
set  [line 3191]

  bool set( [string $type = "general"], string $key, mixed $value  )

Set a single item in the cache

Parameters:
string   $type: 
string   $key: 
mixed   $value: 


[ Top ]
setMultiple  [line 3222]

  bool setMultiple( [string $type = "general"], array $values  )

Set multiple items in the cache

Parameters:
string   $type: 
array   $values: 


[ Top ]
stats  [line 3311]

  array stats( )

Return some basic statistics for the cache..



[ Top ]
trim  [line 3267]

  void trim( )

Trims the cache, if it's getting too large.



[ Top ]

Documentation generated on Tue, 05 Sep 2017 01:06:14 +0200 by phpDocumentor 1.4.3