Home
About
Testimonials
Demos
Download
Documentation
Forum
Development
Class Finder
Tutorials
Class Docs
API Manual
Wiki
Namespace:
System.Caching
Inheritance:
TComponent
»
TApplicationComponent
»
TModule
»
TCache
»
TDbCache
Properties
|
Events
|
Methods
|
Derived classes
|
All classes
Properties
Name
Type
Description
R
Application
TApplication
current application instance. (inherited from
TApplicationComponent
)
AutoCreateCacheTable
boolean
whether the cache DB table should be automatically created if not exists.
CacheTableName
string
the name of the DB table to store cache content.
ConnectionID
string
the ID of a TDataSourceConfig module.
ConnectionString
string
The Data Source Name, or DSN, contains the information required to connect to the database.
R
DbConnection
TDbConnection
the DB connection instance.
FlushInterval
integer
Interval in sec expired items will be removed from cache.
ID
string
id of this module. (inherited from
TModule
)
KeyPrefix
string
a unique prefix for the keys of cached values. (inherited from
TCache
)
Password
string
the password for establishing DB connection.
PrimaryCache
boolean
whether this cache module is used as primary/system cache. (inherited from
TCache
)
R
Request
THttpRequest
the current user request. (inherited from
TApplicationComponent
)
R
Response
THttpResponse
the response. (inherited from
TApplicationComponent
)
R
Service
IService
the current service. (inherited from
TApplicationComponent
)
R
Session
THttpSession
user session. (inherited from
TApplicationComponent
)
R
User
IUser
information about the current user. (inherited from
TApplicationComponent
)
Username
string
the username for establishing DB connection.
Events
Methods
Name
Description
add
Stores a value identified by a key into cache if the cache does not contain this key. (inherited from
TCache
)
addParsedObject
Processes an object that is created during parsing template. (inherited from
TComponent
)
P
addValue
Stores a value identified by a key into cache if the cache does not contain this key.
attachEventHandler
Attaches an event handler to an event. (inherited from
TComponent
)
canGetProperty
Determines whether a property can be read. (inherited from
TComponent
)
canSetProperty
Determines whether a property can be set. (inherited from
TComponent
)
P
createDbConnection
Creates the DB connection.
createdOnTemplate
This method is invoked after the component is instantiated by a template. (inherited from
TComponent
)
delete
Deletes a value with the specified key from cache . (inherited from
TCache
)
P
deleteValue
Deletes a value with the specified key from cache This is the implementation of the method declared in the parent class.
detachEventHandler
Detaches an existing event handler. (inherited from
TComponent
)
doFlushCacheExpired
Event listener for TApplication.
doInitializeCache
Event listener for TApplication.
evaluateExpression
Evaluates a PHP expression in the context of this control. (inherited from
TComponent
)
evaluateStatements
Evaluates a list of PHP statements. (inherited from
TComponent
)
flush
Deletes all values from cache.
flushCacheExpired
Flush expired values from cache depending on FlushInterval .
P
generateUniqueKey
a key generated from the provided key which ensures the uniqueness across applications. (inherited from
TCache
)
get
Retrieves a value from cache with a specified key. (inherited from
TCache
)
getEventHandlers
Returns the list of attached event handlers for an event. (inherited from
TComponent
)
getSubProperty
Evaluates a property path. (inherited from
TComponent
)
P
getValue
Retrieves a value from cache with a specified key.
hasEvent
Determines whether an event is defined. (inherited from
TComponent
)
hasEventHandler
whether an event has been attached one or several handlers. (inherited from
TComponent
)
hasProperty
Determines whether a property is defined. (inherited from
TComponent
)
init
Initializes this module.
P
initializeCache
Initialize TDbCache If AutoCreateCacheTableName is 'true' check existence of cache table and create table if does not exist.
offsetExists
Returns whether there is a cache entry with a specified key. (inherited from
TCache
)
offsetGet
. (inherited from
TCache
)
offsetSet
. (inherited from
TCache
)
offsetUnset
. (inherited from
TCache
)
publishAsset
Publishes a private asset and gets its URL. (inherited from
TApplicationComponent
)
publishFilePath
Publishes a file or directory and returns its URL. (inherited from
TApplicationComponent
)
raiseEvent
Raises an event. (inherited from
TComponent
)
set
Stores a value identified by a key into cache. (inherited from
TCache
)
setSubProperty
Sets a value to a property path. (inherited from
TComponent
)
P
setValue
Stores a value identified by a key in cache.
Derived classes