Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • DevNullStorage
  • FileJournal
  • FileStorage
  • MemcachedStorage
  • MemoryStorage
  • PhpFileStorage
  • SQLiteStorage

Interfaces

  • IJournal
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class FileJournal

Btree+ based file journal.

Nette\Object
Extended by Nette\Caching\Storages\FileJournal implements Nette\Caching\Storages\IJournal
Namespace: Nette\Caching\Storages
Author: Jakub Onderka
Located at Caching/Storages/FileJournal.php
Methods summary
public
# __construct( string $dir )

Parameters

$dir
string
Directory containing journal file
public
# __destruct( )
public
# write( string $key, array $dependencies )

Writes entry information into the journal.

Writes entry information into the journal.

Parameters

$key
string
$dependencies
array

Implementation of

Nette\Caching\Storages\IJournal::write()
public array
# clean( array $conditions )

Cleans entries from journal.

Cleans entries from journal.

Parameters

$conditions
array

Returns

array
of removed items or NULL when performing a full cleanup

Implementation of

Nette\Caching\Storages\IJournal::clean()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string FILE 'btfj.dat'
#

Filename with journal

Filename with journal

integer FILE_MAGIC 0x6274666A
#

4 bytes file header magic (btfj)

4 bytes file header magic (btfj)

integer INDEX_MAGIC 0x696E6465
#

4 bytes index node magic (inde)

4 bytes index node magic (inde)

integer DATA_MAGIC 0x64617461
#

4 bytes data node magic (data)

4 bytes data node magic (data)

integer NODE_SIZE 4096
#

Node size in bytes

Node size in bytes

integer BITROT 12
#

Bit rotation for saving data into nodes. BITROT = log2(NODE_SIZE)

Bit rotation for saving data into nodes. BITROT = log2(NODE_SIZE)

integer HEADER_SIZE 4096
#

Header size in bytes

Header size in bytes

integer INT32_SIZE 4
#

Size of 32 bit integer in bytes. INT32_SIZE = 32 / 8 :-)

Size of 32 bit integer in bytes. INT32_SIZE = 32 / 8 :-)

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'
#
Properties summary
public static boolean $debug FALSE
#

Debug mode, only for testing purposes

Debug mode, only for testing purposes

Magic properties inherited from Nette\Object
$reflection
Nette 2.2 API documentation generated by ApiGen 2.8.0