string
type_id, string
id)
string
type_id, string
id)
Create a new cache instance using the given type ID and ID. This is protected as the `type_id` will typically be set statically by subclasses.
type_id | A string identifying the type of object being cached. This has to be suitable for use as a directory name; i.e. lower case, hyphen- separated. |
id | A string identifying the particular cache instance. This will form the file name of the cache file, but will be escaped beforehand, so can be an arbitrary non-empty string. |
A new cache instance |
0.6.0