Slimore
  • Namespace
  • Class

Namespaces

  • None
  • Slimore
    • Cache
      • Exception
    • Captcha
    • Database
    • Debug
    • Http
    • Image
    • Log
    • Middleware
    • Mvc
    • Pagination
    • Upload

Classes

  • File

Class File

Class File

Namespace: Slimore\Cache
Package: Slimore\Cache
Located at Slimore/Cache/File.php

Methods summary

public
# __construct( )

Constructor

Constructor

public
# setSalt( $salt )

Parameters

$salt
protected string
# encrypt( string $key )

Md5 encrypt cache filename

Md5 encrypt cache filename

Parameters

$key

Returns

string
protected string
# getFilePath( )

Get cache file path

Get cache file path

Returns

string
protected string
# getFileName( string $key )

Get cache filename

Get cache filename

Parameters

$key

Returns

string
public boolean
# set( string $key, string $value, integer $expireTime = null )

Set cache key and write to cache file

Set cache key and write to cache file

Parameters

$key
$value
$expireTime
null

Returns

boolean

Throws

InvalidArgumentException
Slimore\Cache\Exception\File
public mixed|null
# get( $key )

Get cache key value

Get cache key value

Parameters

$key

Returns

mixed|null
protected boolean
# write( string $file, string $value )

Write to cache file

Write to cache file

Parameters

$file
$value

Returns

boolean

Throws

Slimore\Cache\Exception\File
protected mixed|null
# read( string $file )

Read cache file

Read cache file

Parameters

$file

Returns

mixed|null
public boolean
# __set( string $key, string $value )

Setter

Setter

Parameters

$key
$value

Returns

boolean
public mixed|null
# __get( $key )

Getter

Getter

Parameters

$key

Returns

mixed|null
public boolean
# __isset( string $key )

Check has property key, when using isset() or empty()

Check has property key, when using isset() or empty()

Parameters

$key

Returns

boolean
public boolean
# has( string $key )

Check has cache key

Check has cache key

Parameters

$key

Returns

boolean
public boolean
# __unset( string $key )

Delete property key, when using unset()

Delete property key, when using unset()

Parameters

$key

Returns

boolean
public boolean
# remove( string $key )

Remove cache key

Remove cache key

Parameters

$key

Returns

boolean
public
# clear( )

Clear expire cache file

Clear expire cache file

public
# clearAll( )

Delete all cache files

Delete all cache files

Properties summary

public static array $keys
# []
public integer $expireTime
# 3600
protected string $salt
# 'slimore'
public string $cachePath
# '.'
public string $cacheDirectory
# '.caches'
public string $fileExtension
# '.php'
public boolean $base64Encode
# true
Slimore API documentation generated by ApiGen