You are here

public static function Messaging_Destination::cache_by_address in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_destination.class.inc \Messaging_Destination::cache_by_address()

Cache get/set by method and address

3 calls to Messaging_Destination::cache_by_address()
Messaging_Destination::cache_delete in ./messaging.destination.inc
Save object to cache
Messaging_Destination::cache_save in ./messaging.destination.inc
Save object to cache
Messaging_Destination::get_by_address in ./messaging.destination.inc
Get destination by method and address. This allows advanced caching.

File

./messaging.destination.inc, line 388
Drupal Messaging Framework - Default class file

Class

Messaging_Destination
Message destination class

Code

public static function cache_by_address($type, $address, $object = NULL) {
  if (isset($object)) {
    return self::cache_set("{$type}:{$address}", $object);
  }
  else {
    return self::cache_get("{$type}:{$address}");
  }
}