matrix-php-sdk/src/Cache.php
2022-06-23 21:20:33 +10:00

23 lines
563 B
PHP

<?php
namespace Aryess\PhpMatrixSdk;
/**
* Cache constants used when instantiating Matrix Client to specify level of caching
*
* TODO: rather than having CACHE.NONE as arg to MatrixClient, there should be a separate
* LightweightMatrixClient that only implements global listeners and doesn't hook into
* User, Room, etc. classes at all.
* @package Aryess\PhpMatrixSdk
*/
class Cache {
const NONE = -1;
const SOME = 0;
const ALL = 1;
public static $levels = [
self::NONE,
self::SOME,
self::ALL,
];
}