Monday, January 2, 2017

3S Caching System (Cache API effects and PHP knowledge)


This caching gadget has been constructed to be able to cache API requests (coming from Fb, Twitter, YouTube and the like, that often returns json results or XML effects). It Will Possibly also be used to cache PHP knowledge (like large SQL effects, arrays, json, and so forth).

The 3S stands for three garage. This merchandise can use 3 sorts of different storages: SQLite, file device and MySQL.

Features

- Caching API effects (YouTube, Fb, Twitter)
- Can cache XMLs, json, PHP arrays, variables or even HTML .
- 3 varieties of storages: SQLite, Files or MySQL.
- No configuration if used with the document device or SQLite.
- Configuration in not up to 2 mins if used with MySQL.
- Outline for a way long an information must be cached.
- Extremely easy to use in your present website.

Benefits

- accelerate your site by means of caching strategic information.
- Avoid being rejected via API providers by way of restricting requests.

Use example

Cache an information for ONE HUNDRED TWENTY seconds:
$c1 = new Yp_cache();
$c1->cache_set(array(‘key’=>‘123’, ‘knowledge’=>$data, ‘expire’=>‘ONE HUNDRED TWENTY’));

Get a cached information:
$information = $c1->cache_get(array(‘key’=>‘123’));
print_r($information);

Delete a cached information:
$c1->cache_delete(array(‘key’=>‘123’));

Delete all cached data:
$c1->cache_flush();


FULL DOWNLOAD

No comments:

Post a Comment

Trik tersembunyi Bermain Slither.io agar menjadi no 1 | cara tau ampuh

Slither.io Unblocked Play Engaging in online game playing avails a chance for one to have a great experience. This opens up an enormous amo...