jinja2.environment.LRUCache.setdefault

LRUCache.setdefault(key, default=None)[source]

Set default if the key is not in the cache otherwise leave unchanged. Return the value of this key.