extend magic cache api to export the expires value (if available)

This commit is contained in:
Unbit
2013-04-16 18:56:25 +02:00
parent fd6d9148f3
commit 538ab57b6e
16 changed files with 80 additions and 32 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ PHP_FUNCTION(uwsgi_cache_get) {
RETURN_NULL();
}
char *value = uwsgi_cache_magic_get(key, keylen, &valsize, cache);
char *value = uwsgi_cache_magic_get(key, keylen, &valsize, NULL, cache);
if (value) {
char *ret = estrndup(value, valsize);
free(value);