original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Returns a cache_lock instance suitable for use with the store.
  
  @param cache_store $store
  @return cache_lock_interface
docstring_tokens: Returns a cache_lock instance suitable for use with the store .