@@ -108,7 +108,7 @@ public function clear()
108
108
if ($ cleared = $ this ->versioningIsEnabled ) {
109
109
$ namespaceVersion = substr_replace (base64_encode (pack ('V ' , mt_rand ())), static ::getNsSeparator (), 5 );
110
110
try {
111
- $ cleared = $ this ->doSave ([' @ ' .$ this ->namespace => $ namespaceVersion ], 0 );
111
+ $ cleared = $ this ->doSave ([static :: getNsSeparator () .$ this ->namespace => $ namespaceVersion ], 0 );
112
112
} catch (\Exception $ e ) {
113
113
$ cleared = false ;
114
114
}
@@ -237,12 +237,12 @@ private function getId($key)
237
237
if ($ this ->versioningIsEnabled && '' === $ this ->namespaceVersion ) {
238
238
$ this ->namespaceVersion = '1 ' .static ::getNsSeparator ();
239
239
try {
240
- foreach ($ this ->doFetch ([' @ ' .$ this ->namespace ]) as $ v ) {
240
+ foreach ($ this ->doFetch ([static :: getNsSeparator () .$ this ->namespace ]) as $ v ) {
241
241
$ this ->namespaceVersion = $ v ;
242
242
}
243
243
if ('1 ' .static ::getNsSeparator () === $ this ->namespaceVersion ) {
244
244
$ this ->namespaceVersion = substr_replace (base64_encode (pack ('V ' , time ())), static ::getNsSeparator (), 5 );
245
- $ this ->doSave ([' @ ' .$ this ->namespace => $ this ->namespaceVersion ], 0 );
245
+ $ this ->doSave ([static :: getNsSeparator () .$ this ->namespace => $ this ->namespaceVersion ], 0 );
246
246
}
247
247
} catch (\Exception $ e ) {
248
248
}
@@ -268,6 +268,8 @@ public static function handleUnserializeCallback($class)
268
268
269
269
/**
270
270
* @return string the namespace separator for cache keys
271
+ *
272
+ * @internal
271
273
*/
272
274
protected static function getNsSeparator ()
273
275
{
0 commit comments