|
|
|
NOTE: This Design document is subject to change at any time. |
The zStore object provides an interface for general storage. These objects can be used to cache information, and can interface with a variety of medium, including SQL databases and file systems.
This is a generic interface. The basic zStore object only maintains information in memory and has no storage. For storage, specific inherited objects such as IniFile or zSQLStore should be used instead.
The default zStore object acts like an associative array. The Index value used to store and retrieve records in the Item property is a String value. The data stored for each record is Variant, so can be anything, and can be mixed data types.
In general, a Store object should be accessed by Key values. The Get and Put methods allow you to retrieve or set a particular Key value. The FieldName argument to these methods allows the store to be structured into records or sections.
Normally, sequential access of data in a store is not allowed. Stores that allow sequential access will typically implement the zCollection interface in addition to the zStore interface. |
|