Cache not working

I am attempting to use the cache functionality but I am unable to get it to work.

displaycache = cache.get("displaycache")
if displaycache == None:
    displaycache = 1
else:
    displaycache += 1
cache.set("displaycache", str(displaycache), ttl_seconds = 600)

The value of displaycache NEVER changes from 1.

I am using this inside code that I am pushing with the API. Does the cache work when pushing with the API?

Any help is appreciated.

Thanks,
Michael

When running pixlet render locally there is no cache. But you can test it by running pixlet serve and keeping it running. as long as you keep it running it will maintain a cache but as soon as you kill it and restart it the cache is reset.