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
@@ -2925,7 +2925,7 @@ PyObject *py_uwsgi_cache_get(PyObject * self, PyObject * args) {
uint64_t vallen = 0;
UWSGI_RELEASE_GIL
char *value = uwsgi_cache_magic_get(key, keylen, &vallen, cache);
char *value = uwsgi_cache_magic_get(key, keylen, &vallen, NULL, cache);
UWSGI_GET_GIL
if (value) {
// in python 3.x we return bytes