Favorites cache class.
More...
Detailed Description
Favorites cache class.
- Author:
- Matt
Constructor & Destructor Documentation
Member Function Documentation
| create |
( |
$ |
relId, |
|
|
$ |
memberId = null |
|
) |
| |
Creates/updates the relationship ID's cache
- Parameters:
-
| integer | $relId | Relationship ID |
| integer | $memberId | Member ID |
- Returns:
- array Array of stored data
| delete |
( |
$ |
relId, |
|
|
$ |
memberId = null |
|
) |
| |
Deletes a cache
- Parameters:
-
| mixed | $relId | Relationship ID or array of IDs |
| integer | $memberId | Member ID |
- Returns:
- void
| get |
( |
$ |
relId, |
|
|
$ |
memberId = null |
|
) |
| |
Fetch an item from the cache
- Parameters:
-
| integer | $relId | Relationship ID |
| integer | $memberId | Member ID |
- Returns:
- array
Flags a cache as stale. We choose to delete, but the cache class should make the call not the application
- Parameters:
-
| mixed | $relId | Relationship ID or array of IDs |
| integer | $memberId | Member ID |
- Returns:
- void
Set the cache expiration
- Parameters:
-
| integer | $seconds | Time in seconds |
- Returns:
- void
Field Documentation
Cache expiration time in seconds
Registry Object Shortcuts
The documentation for this class was generated from the following file:
- admin/sources/classes/like/composite.php