ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilExampleCache.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once(
"./Services/Cache/classes/class.ilCache.php"
);
5
15
class
ilExampleCache
extends
ilCache
16
{
23
public
function
__construct
()
24
{
25
parent::__construct(
"ServicesCache"
,
"Example"
,
false
);
26
$this->
setExpiresAfter
(5);
// only five seconds to make a hit
27
// usually you would this value from some setting
28
}
29
}
ilExampleCache
Example cache class.
Definition:
class.ilExampleCache.php:15
ilCache
Cache class.
Definition:
class.ilCache.php:18
ilCache\setExpiresAfter
setExpiresAfter($a_val)
Set expires after x seconds.
Definition:
class.ilCache.php:109
ilExampleCache\__construct
__construct()
Constructor.
Definition:
class.ilExampleCache.php:23
Services
Cache
classes
class.ilExampleCache.php
Generated on Sat Jan 18 2025 19:01:27 for ILIAS by
1.8.13 (using
Doxyfile
)