MDL-39472 MUC: Improve parse_key performance

This commit is contained in:
sam marshall 2013-05-02 16:00:09 +01:00
parent cf5a3296c4
commit cb86f1ebb3
5 changed files with 55 additions and 0 deletions

View File

@ -195,6 +195,17 @@ class cachestore_file extends cache_store implements cache_is_key_aware, cache_i
return $supported;
}
/**
* Returns false as this store does not support multiple identifiers.
* (This optional function is a performance optimisation; it must be
* consistent with the value from get_supported_features.)
*
* @return bool False
*/
public function supports_multiple_identifiers() {
return false;
}
/**
* Returns the supported modes as a combined int.
*

View File

@ -181,6 +181,17 @@ class cachestore_memcache extends cache_store implements cache_is_configurable {
return self::SUPPORTS_NATIVE_TTL;
}
/**
* Returns false as this store does not support multiple identifiers.
* (This optional function is a performance optimisation; it must be
* consistent with the value from get_supported_features.)
*
* @return bool False
*/
public function supports_multiple_identifiers() {
return false;
}
/**
* Returns the supported modes as a combined int.
*

View File

@ -205,6 +205,17 @@ class cachestore_memcached extends cache_store implements cache_is_configurable
return self::SUPPORTS_NATIVE_TTL;
}
/**
* Returns false as this store does not support multiple identifiers.
* (This optional function is a performance optimisation; it must be
* consistent with the value from get_supported_features.)
*
* @return bool False
*/
public function supports_multiple_identifiers() {
return false;
}
/**
* Returns the supported modes as a combined int.
*

View File

@ -141,6 +141,17 @@ class cachestore_session extends session_data_store implements cache_is_key_awar
self::IS_SEARCHABLE;
}
/**
* Returns false as this store does not support multiple identifiers.
* (This optional function is a performance optimisation; it must be
* consistent with the value from get_supported_features.)
*
* @return bool False
*/
public function supports_multiple_identifiers() {
return false;
}
/**
* Returns the supported modes as a combined int.
*

View File

@ -136,6 +136,17 @@ class cachestore_static extends static_data_store implements cache_is_key_aware
self::SUPPORTS_NATIVE_TTL;
}
/**
* Returns false as this store does not support multiple identifiers.
* (This optional function is a performance optimisation; it must be
* consistent with the value from get_supported_features.)
*
* @return bool False
*/
public function supports_multiple_identifiers() {
return false;
}
/**
* Returns the supported modes as a combined int.
*