changed memcached provider's constructor to take ttl and updated version