To speed up your application we strongly suggest you cache all api calls. The Justimmo PHP-SDK comes with a build in Memcache Class. If you don’t have a MemcachedService at your disposal you can easily create an inject own Caching Services


PHP Memcache Documentation

use Justimmo\Cache\MemcacheCache;
use Justimmo\Api\JustimmoApi;

$memcache = new Memcache();

//pass an instance of Memcache and a lifetime
$cache = new MemcacheCache($memcache, 1200);
$api = new JustimmoApi('username', 'password', null, $cache);

Building your own cache

Create a class which implements the \Justimmo\Cache\CacheInterface