Beispiel #1
0
 /**
  * Returns a cache_lock instance suitable for use with the store.
  *
  * @param cache_store $store
  * @return cache_lock_interface
  */
 public static function get_cachelock_for_store(cache_store $store)
 {
     $instance = cache_config::instance();
     $lockconf = $instance->get_lock_for_store($store->my_name());
     $factory = cache_factory::instance();
     return $factory->create_lock_instance($lockconf);
 }