You are here

public static function Messaging_Destination::cache_by_address in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.destination.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 includes/messaging_destination.class.inc
Save object to cache
Messaging_Destination::cache_save in includes/messaging_destination.class.inc
Save object to cache
Messaging_Destination::get_by_address in includes/messaging_destination.class.inc
Get destination by method and address. This allows advanced caching.

File

includes/messaging_destination.class.inc, line 322
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}");
  }
}