diff --git a/src/cache/driver/File.php b/src/cache/driver/File.php index c4e7833..63a7fdf 100644 --- a/src/cache/driver/File.php +++ b/src/cache/driver/File.php @@ -30,7 +30,7 @@ class File extends Driver 'path' => '', 'hash_type' => 'md5', 'data_compress' => false, - 'tag_prefix' => 'tag_', + 'tag_prefix' => 'tag:', 'serialize' => [], ]; diff --git a/src/cache/driver/Memcache.php b/src/cache/driver/Memcache.php index 4ff8673..d4d3270 100644 --- a/src/cache/driver/Memcache.php +++ b/src/cache/driver/Memcache.php @@ -29,7 +29,7 @@ class Memcache extends Driver 'timeout' => 0, // 超时时间(单位:毫秒) 'persistent' => true, 'prefix' => '', - 'tag_prefix' => 'tag_', + 'tag_prefix' => 'tag:', 'serialize' => [], ]; diff --git a/src/cache/driver/Memcached.php b/src/cache/driver/Memcached.php index 964f3af..a14233e 100644 --- a/src/cache/driver/Memcached.php +++ b/src/cache/driver/Memcached.php @@ -31,7 +31,7 @@ class Memcached extends Driver 'username' => '', //账号 'password' => '', //密码 'option' => [], - 'tag_prefix' => 'tag_', + 'tag_prefix' => 'tag:', 'serialize' => [], ]; diff --git a/src/cache/driver/Redis.php b/src/cache/driver/Redis.php index 531c210..adcb555 100644 --- a/src/cache/driver/Redis.php +++ b/src/cache/driver/Redis.php @@ -35,7 +35,7 @@ class Redis extends Driver 'expire' => 0, 'persistent' => false, 'prefix' => '', - 'tag_prefix' => 'tag_', + 'tag_prefix' => 'tag:', 'serialize' => [], ]; diff --git a/src/cache/driver/Wincache.php b/src/cache/driver/Wincache.php index 2740e87..e7828b9 100644 --- a/src/cache/driver/Wincache.php +++ b/src/cache/driver/Wincache.php @@ -25,7 +25,7 @@ class Wincache extends Driver protected $options = [ 'prefix' => '', 'expire' => 0, - 'tag_prefix' => 'tag_', + 'tag_prefix' => 'tag:', 'serialize' => [], ];