Skip to content

Commit

Permalink
private consts
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 23, 2017
1 parent 30d955d commit 6df4f89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Caching/Storages/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class FileStorage implements Nette\Caching\IStorage
*/

/** @internal cache file structure */
const META_HEADER_LEN = 28, // 22b signature + 6b meta-struct size + serialized meta-struct + data
private const
META_HEADER_LEN = 28, // 22b signature + 6b meta-struct size + serialized meta-struct + data
// meta structure: array of
META_TIME = 'time', // timestamp
META_SERIALIZED = 'serialized', // is content serialized?
Expand All @@ -42,7 +43,8 @@ class FileStorage implements Nette\Caching\IStorage
META_CALLBACKS = 'callbacks'; // array of callbacks (function, args)

/** additional cache structure */
const FILE = 'file',
private const
FILE = 'file',
HANDLE = 'handle';


Expand Down
3 changes: 2 additions & 1 deletion src/Caching/Storages/NewMemcachedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class NewMemcachedStorage implements Nette\Caching\IStorage, Nette\Caching\IBulk
use Nette\SmartObject;

/** @internal cache structure */
const META_CALLBACKS = 'callbacks',
private const
META_CALLBACKS = 'callbacks',
META_DATA = 'data',
META_DELTA = 'delta';

Expand Down

0 comments on commit 6df4f89

Please sign in to comment.