[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/cachehandlers/ -> disk.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license

File Size: 136 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

diskCacheHandler:: (6 methods):
  connect()
  fetch()
  put()
  delete()
  disconnect()
  size_of()


Class: diskCacheHandler  - X-Ref

Disk Cache Handler

connect($silent=false)   X-Ref
Connect and initialize this handler.

return: boolean True if successful, false on failure

fetch($name, $hard_refresh=false)   X-Ref
Retrieve an item from the cache.

param: string The name of the cache
param: boolean True if we should do a hard refresh
return: mixed Cache data if successful, false if failure

put($name, $contents)   X-Ref
Write an item to the cache.

param: string The name of the cache
param: mixed The data to write to the cache item
return: boolean True on success, false on failure

delete($name)   X-Ref
Delete a cache

param: string The name of the cache
return: boolean True on success, false on failure

disconnect()   X-Ref
Disconnect from the cache


size_of($name='')   X-Ref
Select the size of the disk cache

param: string The name of the cache
return: integer the size of the disk cache



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1