mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 13:52:24 +09:00
Change default cache driver to 'dummy' with minimal caching
This commit is contained in:
parent
d4e2163e2b
commit
ba10c91d0e
15 changed files with 95 additions and 120 deletions
3
common/framework/drivers/cache/sqlite.php
vendored
3
common/framework/drivers/cache/sqlite.php
vendored
|
|
@ -130,9 +130,10 @@ class SQLite implements \Rhymix\Framework\Drivers\CacheInterface
|
|||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param int $ttl
|
||||
* @param bool $force
|
||||
* @return bool
|
||||
*/
|
||||
public function set($key, $value, $ttl)
|
||||
public function set($key, $value, $ttl = 0, $force = false)
|
||||
{
|
||||
$table = 'cache_' . (crc32($key) % 32);
|
||||
$stmt = $this->_dbh->prepare('INSERT OR REPLACE INTO ' . $table . ' (k, v, exp) VALUES (:key, :val, :exp)');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue