-
Notifications
You must be signed in to change notification settings - Fork 7
/
rssCacheInt.php
53 lines (48 loc) · 1.42 KB
/
rssCacheInt.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
namespace Taophp;
/**
* This file defile the RsscacheInt interface
*
* This interface defines the minimal requirement expected for a cache object to work with the rssMerger class
* @package Rss-merger
* @license GPLv2
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @copyright 2014 Stéphane Mourey <[email protected]>
* @author Stéphane Mourey <[email protected]>
* @version 2.3.2-beta Time Limited Edition
* */
interface rssCacheInt {
/**
* Store a string (RSS XML) in the cache for a feed
*
* @param string $feedId a unique id for the feed to store
* @param string $toStore the string to store in the cache (RSS XML)
*
* @return bool
* */
public function feedRSSCache($feedId,$toStore);
/**
* Retrive a string (RSS XML) from the cache for a feed
*
* @param string $feedId a unique id for the feed to store
*
* @return string the stored string (RSS XML)
* */
public function getRSSCache($feedId);
/**
* Check if the cache is usable (not too old)
*
* @param string $feedId a unique id for the feed to store
*
* @return bool true if usable, false if not
* */
public function checkRSSCache($feedId);
/**
* Check if data exist in cache (even too old)
*
* @param string $feedId a unique id for the feed to store
*
* @return bool true if data exist, false if not
* */
public function checkRSSCacheExists($feedId);
}