Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F1202072
void.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
void.php
View Options
<?php
/*
* Zed
* (c) 2010, Dereckson, some rights reserved
* Released under BSD license
*
* Cache class: void
*
* 0.1 2010-07-06 22:55 Initial version [DcK]
*
* This class doesn't cache information, it'a void wrapper
* get will always return null
* set and delete do nothing
*
* This class implements a singleton pattern.
*
*/
class
CacheVoid
{
/*
* @var CacheVoid the current cache instance
*/
static
$instance
=
null
;
/*
* Gets the cache instance, initializing it if needed
* @eturn Cache the cache instance, or null if nothing is cached
*/
static
function
load
()
{
if
(
self
::
$instance
===
null
)
{
self
::
$instance
=
new
CacheVoid
();
}
return
self
::
$instance
;
}
/*
* Gets the specified key's data
*/
function
get
(
$key
)
{
return
null
;
}
/*
* Sets the specified data at the specified key
*/
function
set
(
$key
,
$value
)
{
}
/*
* Deletes the specified key's data
*/
function
delete
(
$key
)
{
}
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 12, 23:57 (1 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21604
Default Alt Text
void.php (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment