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 3156]



		
				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
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
void   SimpleCache()  
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 3158]

[ Top ]
mixed   $itemlimit [line 3161]

[ Top ]
mixed   $keepstats [line 3160]

[ Top ]
mixed   $memlimit [line 3162]

[ Top ]
mixed   $stats [line 3159]

[ Top ]
Methods
clear  [line 3328]

  void clear( )



[ Top ]
get  [line 3254]

  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 3200]

  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 3231]

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

Set multiple items in the cache

Parameters:
string   $type: 
array   $values: 


[ Top ]
SimpleCache  [line 3164]

  void SimpleCache( )



[ Top ]
stats  [line 3320]

  array stats( )

Return some basic statistics for the cache..



[ Top ]
trim  [line 3276]

  void trim( )

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



[ Top ]

Documentation generated on Thu, 17 May 2012 01:07:28 +0200 by phpDocumentor 1.4.3