It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class Cache


Namespace: Com\Tecnick\File
Package: File
Category: Library
Copyright: 2011-2016 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni [email protected]
Since: 2011-05-23
Located at Cache.php
Methods summary
# __construct( string $prefix = null )

Set the file prefix (common name)

public string
# getCachePath( )

Get the cache directory path

# setCachePath( string|null $path = null )

Set the default cache directory path

public string
# getFilePrefix( )

Get the file prefix

public string
# getNewFileName( string $type = 'tmp', string $key = '0' )

Returns a temporary filename for caching files

# delete( string $type = null, string $key = null )

Delete cached files

# defineSystemCachePath( )

Set the K_PATH_CACHE constant (if not set) to the default system directory for temporary files

protected string
# normalizePath( string $path )

Normalize cache path

Properties summary
protected static string $path

Cache path

protected static string $prefix

File prefix


? 2004-2019 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy