Cache class that stores content in a sqlite database.
Inheritence
sfSQLiteCache
<
sfCache
Method Summary
-
boolean
clean()
Cleans the cache.
-
createSchema()
Creates the database schema.
-
string
get(, , )
Tests if a cache is available and (if yes) returns it.
-
string
getDatabase()
Gets the database name.
-
boolean
has(, , )
Returns true if there is a cache for the given id and namespace.
-
initialize()
Initializes the cache.
-
lastModified()
-
boolean
remove(, )
Removes an element from the cache.
-
boolean
set(, , )
Saves some data in the cache.
-
setDatabase()
Sets the database name.
-
__construct()
Constructor.
-
__destruct()
Destructor.
Methods inherited from sfCache
clean , get , getLifeTime , has , lastModified , remove , set , setLifeTime
Method Details
-
Cleans the cache.
If no namespace is specified all cache files will be destroyed
else only cache files of the specified namespace will be destroyed.
returns true if no problem
-
Creates the database schema.
throws sfException
-
Tests if a cache is available and (if yes) returns it.
returns The data in the cache (or null if no cache available)
-
(string) getDatabase ()
Browse code
Gets the database name.
returns The database name
-
Returns true if there is a cache for the given id and namespace.
returns true if the cache exists, false otherwise
-
Initializes the cache.
-
-
Removes an element from the cache.
returns true if no problem
-
Saves some data in the cache.
returns true if no problem
-
Sets the database name.
-
Constructor.
-
Destructor.
|