ó
rÁìVc           @   sQ   d  d l  m Z d d l m Z e ƒ  Z d „  Z d „  Z d „  Z d „  Z d S(	   iÿÿÿÿ(   t   slugifyi   (   t   get_cache_backendc         C   s   d t  |  ƒ S(   s+   
    Prefixes and slugify the key name
    s   post_office:template:%s(   R    (   t   name(    (    sj   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/cache.pyt   get_cache_key
   s    c         C   s   t  j t |  ƒ | ƒ S(   N(   t   cache_backendt   setR   (   R   t   content(    (    sj   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/cache.pyR      s    c         C   s   t  j t |  ƒ ƒ S(   N(   R   t   getR   (   R   (    (    sj   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/cache.pyR      s    c         C   s   t  j t |  ƒ ƒ S(   N(   R   t   deleteR   (   R   (    (    sj   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/cache.pyR      s    N(	   t   django.template.defaultfiltersR    t   settingsR   R   R   R   R   R   (    (    (    sj   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/cache.pyt   <module>   s   				