Skip to content

Latest commit

 

History

History
124 lines (66 loc) · 3 KB

class.Smarty_CacheResource_Mysql.md

File metadata and controls

124 lines (66 loc) · 3 KB

Class Smarty_CacheResource_Mysql

Contents

Methods

Methods

delete

integer Smarty_CacheResource_Mysql::delete(string $name, string $cache_id, string $compile_id, integer|null $exp_time)

Delete content from cache

Arguments

  • $name string - template name
  • $cache_id string - cache id
  • $compile_id string - compile id
  • $exp_time integer|null - seconds till expiration or null

fetch

void Smarty_CacheResource_Mysql::fetch(string $id, string $name, string $cache_id, string $compile_id, string $content, integer $mtime)

fetch cached content and its modification time from data source

Arguments

  • $id string - unique cache content identifier
  • $name string - template name
  • $cache_id string - cache id
  • $compile_id string - compile id
  • $content string - cached content
  • $mtime integer - cache modification timestamp (epoch)

fetchTimestamp

integer|boolean Smarty_CacheResource_Mysql::fetchTimestamp(string $id, string $name, string $cache_id, string $compile_id)

Fetch cached content's modification timestamp from data source

Arguments

  • $id string - unique cache content identifier
  • $name string - template name
  • $cache_id string - cache id
  • $compile_id string - compile id

save

boolean Smarty_CacheResource_Mysql::save(string $id, string $name, string $cache_id, string $compile_id, integer|null $exp_time, string $content)

Save content to cache

Arguments

  • $id string - unique cache content identifier
  • $name string - template name
  • $cache_id string - cache id
  • $compile_id string - compile id
  • $exp_time integer|null - seconds till expiration time in seconds or null
  • $content string - content to cache