Skip to content

Commit

Permalink
缓存标签标识前缀更改
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed May 30, 2019
1 parent 128711e commit fb7751d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cache/driver/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class File extends Driver
'path' => '',
'hash_type' => 'md5',
'data_compress' => false,
'tag_prefix' => 'tag_',
'tag_prefix' => 'tag:',
'serialize' => [],
];

Expand Down
2 changes: 1 addition & 1 deletion src/cache/driver/Memcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Memcache extends Driver
'timeout' => 0, // 超时时间(单位:毫秒)
'persistent' => true,
'prefix' => '',
'tag_prefix' => 'tag_',
'tag_prefix' => 'tag:',
'serialize' => [],
];

Expand Down
2 changes: 1 addition & 1 deletion src/cache/driver/Memcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Memcached extends Driver
'username' => '', //账号
'password' => '', //密码
'option' => [],
'tag_prefix' => 'tag_',
'tag_prefix' => 'tag:',
'serialize' => [],
];

Expand Down
2 changes: 1 addition & 1 deletion src/cache/driver/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Redis extends Driver
'expire' => 0,
'persistent' => false,
'prefix' => '',
'tag_prefix' => 'tag_',
'tag_prefix' => 'tag:',
'serialize' => [],
];

Expand Down
2 changes: 1 addition & 1 deletion src/cache/driver/Wincache.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Wincache extends Driver
protected $options = [
'prefix' => '',
'expire' => 0,
'tag_prefix' => 'tag_',
'tag_prefix' => 'tag:',
'serialize' => [],
];

Expand Down

0 comments on commit fb7751d

Please sign in to comment.