aboutsummaryrefslogtreecommitdiff
path: root/lib/CacheInterface.php
blob: 091c5f029acd562593ebaa253843dbfc8eca639e (plain) (blame)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
 * This file is part of RSS-Bridge, a PHP project capable of generating RSS and
 * Atom feeds for websites that don't have one.
 *
 * For the full license information, please view the UNLICENSE file distributed
 * with this source code.
 *
 * @package	Core
 * @license	http://unlicense.org/ UNLICENSE
 * @link	https://github.com/rss-bridge/rss-bridge
 */

/**
 * The cache interface
 */
interface CacheInterface {
	/**
	 * Set scope of the current cache
	 *
	 * If $scope is an empty string, the cache is set to a global context.
	 *
	 * @param string $scope The scope the data is related to
	 */
	public function setScope($scope);

	/**
	 * Set key to assign the current data
	 *
	 * Since $key can be anything, the cache implementation must ensure to
	 * assign the related data reliably; most commonly by serializing and
	 * hashing the key in an appropriate way.
	 *
	 * @param array $key The key the data is related to
	 */
	public function setKey($key);

	/**
	 * Loads data from cache
	 *
	 * @return mixed The cached data or null
	 */
	public function loadData();

	/**
	 * Stores data to the cache
	 *
	 * @param mixed $data The data to store
	 * @return self The cache object
	 */
	public function saveData($data);

	/**
	 * Returns the timestamp for the curent cache data
	 *
	 * @return int Timestamp or null
	 */
	public function getTime();

	/**
	 * Removes any data that is older than the specified age from cache
	 *
	 * @param int $seconds The cache age in seconds
	 */
	public function purgeCache($seconds);
}
y-2732 Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/webcore/IdentifierEventListenerMap.cpp (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-10-08Fix fetch response redirected (#1303)Gravatar zhiyuan 9-18/+110
* fix: sync codegen * fix: generate class script * fix: sync codegen * fix: add response redirected property
2022-10-08fix: install error when node_modules already in npm package (#1301)Gravatar zhiyuan 1-0/+2
2022-10-08Fix https://github.com/oven-sh/bun/issues/1263Gravatar Jarred Sumner 9-1345/+110
What happened: when moving to uSockets for the http client, I forgot to call `SSL_set_tlsext_host_name` and uSockets apparently doesn't do that
2022-10-07Fix nested modules bin executable issue (#1299)Gravatar zhiyuang 2-53/+29
2022-10-06Fix linux amd64 crashGravatar Jarred Sumner 1-2/+5
2022-10-06Fix unused argGravatar Jarred SUmner 1-1/+1
2022-10-06Add --profile to bun upgradeGravatar Jarred SUmner 1-18/+30
2022-10-06Add `protocol` getter to Bun.serve()Gravatar Jarred Sumner 1-0/+11
2022-10-06Automatically support hot reloading with `export default { fetch() }`Gravatar Jarred Sumner 2-32/+76
2022-10-06Fix Buffer.toJSON()Gravatar Jarred Sumner 2-15/+25
2022-10-06Fix failing linux buildGravatar Jarred Sumner 1-1/+3
2022-10-06Add WebSocket bindings for uWSGravatar Jarred Sumner 1-29/+102
2022-10-06Add simple Hot Module Reloading to bun's runtimeGravatar Jarred Sumner 15-34/+340
2022-10-06Implement Server.reload()Gravatar Jarred Sumner 1-6/+42
2022-10-05Implement `console.count` and `console.countReset`Gravatar Jarred Sumner 1-19/+35
Fixes https://github.com/oven-sh/bun/issues/1296
2022-10-05move Bun.spawn into separate fileGravatar Jarred Sumner 4-1045/+1082
2022-10-05Add abstraction for ticking async event loopGravatar Jarred Sumner 5-7/+7
2022-10-05Support buffered input in Bun.spawnGravatar Jarred Sumner 1-7/+15
2022-10-05Fix interopRequireDefault issue with `path` :(Gravatar Jarred Sumner 2-3/+11
2022-10-05Expose private `@require` symbolGravatar Jarred Sumner 1-0/+5
2022-10-05Mark these strings as not needing to be GC'dGravatar Jarred Sumner 1-9/+11
2022-10-05[breaking] `process.version` lies and reports Node 18Gravatar Jarred Sumner 1-2/+2
See https://twitter.com/jarredsumner/status/1577189928294789122
2022-10-05Improve stack traces in fs functionsGravatar Jarred Sumner 1-62/+57
This is a hack
2022-10-05Export `rm` in fs/promisesGravatar Jarred Sumner 1-0/+10
2022-10-05Temporary hack so `res.socket` in node:http doesn't throwGravatar Jarred Sumner 1-1/+7
2022-10-05Fix missing path/posix and path/win32Gravatar Jarred Sumner 1-9/+27
2022-10-05Handle more edgecases in fs.rm on macOSGravatar Jarred Sumner 1-11/+52
2022-10-05We need to explicitly flush nowGravatar Jarred Sumner 1-1/+1
2022-10-05Add a test for simultaneous requestsGravatar Jarred Sumner 1-0/+42
2022-10-05handle values from native in streamsGravatar Jarred Sumner 1-7/+6
2022-10-05Fix bug with next dev showing raw html instead of the rendered pageGravatar Jarred Sumner 1-4/+21
2022-10-05docs(thread_pool): comment readability improvements (#1241)Gravatar Ryan Russell 1-6/+6
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-10-05fix: console.log handle circular correctly (#1293)Gravatar zhiyuang 2-0/+8
2022-10-03Fix DotEnv Loader ignoring error log levelGravatar Jarred Sumner 1-1/+4