Solar_Sql_Model_Cache::entry()

public string Solar_Sql_Model_Cache::entry ( Solar_Sql_Model_Params_Fetch $fetch )

Gets the key for a cache entry based on fetch parameters for a select.

Parameters

  • (Solar_Sql_Model_Params_Fetch) $fetch: The fetch parameters for a select.

Returns

  • (string) The versioned cache entry key.

Description

Gets the key for a cache entry based on fetch parameters for a select.

The entry is keyed under $prefix/model/$model_name/data/$version/$hash, where $hash is an MD5 hash of the serialized parameters.

If the params include a cache_key entry, that value is used instead of $hash.



Local