You are here

public static function TagadelicCloud::from_cache in Tagadelic 7.2

Instantiate $this from cache Optionally pass $drupal, a Drupalwrapper along, mostly for testing. Returns this

1 call to TagadelicCloud::from_cache()
TagadelicCloudTest::testfrom_cache in tests/TagadelicCloudTest.php
@covers tagadeliccloud::from_cache

File

./TagadelicCloud.php, line 87

Class

TagadelicCloud
class TagadelicCloud TagadelicCloud, contains a list of tags and methods to manipulate this set of tags. It can operate on the list of tags.

Code

public static function from_cache($id, $drupal) {
  $cache_id = "tagadelic_cloud_{$id}";
  return $drupal
    ->cache_get($cache_id);
}