talis/persona-php-client — pull request #3 by robotrobot (2014-05-13 13:07:38+00:00)
Title: Implementing caching of tokens obtained to bring in line with node client

* useCache (default=true) is a new param on `obtainNewToken`
* if set, it will put new tokens obtained from persona into redis and check redis each time a new token is requested, expiring 60s before the token expiry
* as with the node client, this allows us to be chatty to the client in our code but not hassle persona (slow)