2017 © Pedro Peláez
 

silverstripe-module salted-library

Salted Herring's PHP Library (in progress)

image

salted-herring/salted-library

Salted Herring's PHP Library (in progress)

  • Wednesday, December 6, 2017
  • by saltedherring
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2,020 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 17 Versions
  • 7 % Grown

The README.md

API

SaltedCache

SaltedCache provides you 3 simple functions that ease the manipulation of SilveStripe/Memcache's cache, (*1)

public static function read($factory, $cache_key)

$factory - String. The factory name of which you store the cache, (*2)

$cache_key - String. The key that is used to retrieve the cache. Recommend use with Utilities::stringify(HTTP_REQUEST), (*3)

public static function delete($factory, $cache_key)

$factory - String. The factory name of which you store the cache, (*4)

$cache_key - String. The key that is used to retrieve the cache. Recommend use with Utilities::stringify(HTTP_REQUEST), (*5)

public static function save($factory, $cache_key, $result)

$factory - String. The factory name of which you store the cache, (*6)

$cache_key - String. The key that is used to store the cache. You will need the same key to retrieve the corresponding result. Recommend use with Utilities::stringify(HTTP_REQUEST), (*7)

$result - Array | DataList. The result that you pull out from the DB or sewed up multiple datalist manually., (*8)

The Versions

06/04 2017
08/03 2017
08/03 2017
19/01 2017
15/01 2017
16/12 2016
28/11 2016
27/11 2016
08/11 2016
28/10 2016