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
@@ -276,7 +276,7 @@ static int uwsgi_api_cache_get(lua_State *L) {
if (argc > 1) {
cache = lua_tolstring(L, 2, NULL);
}
value = uwsgi_cache_magic_get((char *)key, keylen, &valsize, (char *)cache);
value = uwsgi_cache_magic_get((char *)key, keylen, &valsize, NULL, (char *)cache);
if (value) {
lua_pushlstring(L, value, valsize);
free(value);