Class FileJournal
Btree+ based file journal.
- Nette\Object
- Nette\Caching\Storages\FileJournal implements Nette\Caching\Storages\IJournal
public
|
|
public
|
|
public
|
|
public
array
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
string |
FILE
Filename with journal |
# 'btfj.dat' |
integer |
FILE_MAGIC
4 bytes file header magic (btfj) |
# 0x6274666A |
integer |
INDEX_MAGIC
4 bytes index node magic (inde) |
# 0x696E6465 |
integer |
DATA_MAGIC
4 bytes data node magic (data) |
# 0x64617461 |
integer |
NODE_SIZE
Node size in bytes |
# 4096 |
integer |
BITROT
Bit rotation for saving data into nodes. BITROT = log2(NODE_SIZE) |
# 12 |
integer |
HEADER_SIZE
Header size in bytes |
# 4096 |
integer |
INT32_SIZE
Size of 32 bit integer in bytes. INT32_SIZE = 32 / 8 :-) |
# 4 |
string |
INFO
|
# 'i' |
string |
TYPE
|
# 't' |
string |
IS_LEAF
|
# 'il' |
string |
PREV_NODE
|
# 'p' |
string |
END
|
# 'e' |
string |
MAX
|
# 'm' |
string |
INDEX_DATA
|
# 'id' |
string |
LAST_INDEX
|
# 'l' |
string |
TAGS
|
# 't' |
string |
PRIORITY
|
# 'p' |
string |
ENTRIES
|
# 'e' |
string |
DATA
|
# 'd' |
string |
KEY
|
# 'k' |
string |
DELETED
|
# 'd' |
public static
boolean
|
$debug
Debug mode, only for testing purposes |
# FALSE |
$reflection
|