Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 28c45ea

Browse files
committed
✨ more benchmark helpers
1 parent ebc46b9 commit 28c45ea

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

classes/BoostCache.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,26 @@ public static function mysql(array $options = [])//: Cache
9797
return null;
9898
}
9999

100+
public static function php(array $options = [])//: Cache
101+
{
102+
if (class_exists('Bnomei\\PHPCache')) {
103+
$elephant = \Bnomei\PHPCache::singleton(array_merge([
104+
], $options));
105+
return $elephant;
106+
}
107+
return null;
108+
}
109+
110+
public static function mongodb(array $options = [])//: Cache
111+
{
112+
if (class_exists('Bnomei\\MongoDBCache')) {
113+
$ape = \Bnomei\MongoDBCache::singleton(array_merge([
114+
], $options));
115+
return $ape;
116+
}
117+
return null;
118+
}
119+
100120
public static function redis(array $options = [])//: Cache
101121
{
102122
if (class_exists('Bnomei\\Redis')) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-boost",
33
"type": "kirby-plugin",
4-
"version": "1.6.1",
4+
"version": "1.6.2",
55
"description": "Boost the speed of Kirby by having content files of pages cached, with automatic unique ID, fast lookup and Tiny-URL.",
66
"license": "MIT",
77
"authors": [

0 commit comments

Comments
 (0)