Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
feat(Redis): Add mutiDelete() function for Redis
Browse files Browse the repository at this point in the history
1. Add mutiDelete() function for Redis
2. Fix Namespace of ubbcode format
  • Loading branch information
Rhilip committed Jul 21, 2019
1 parent bb01120 commit c9dc659
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions framework/Redis/BaseRedisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ public function typeof($key): ?string
}
}

public function mutiDelete($pattern) {
return $this->del($this->keys($pattern));
}

public function getCalledData()
{
return $this->_calledData;
Expand Down
2 changes: 1 addition & 1 deletion framework/View/Conversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function format_ubbcode($var)
self::setDefault($var, ['escapeHtml' => true]);
$string = array_shift($var);

$code = new Decoda($string, $var,'Post_cache:' . md5($string));
$code = new Decoda($string, $var,'Cache:post:' . md5($string));

$code->defaults(); // TODO add support of tag [mediainfo] , [nfo]

Expand Down

0 comments on commit c9dc659

Please sign in to comment.