|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.4/site-packages/mod_python/ |
Upload File : |
mò
A™áCc @ s’ d k l Z d k l Z l Z d k l Z d k l Z d k Z d k Z d k
Z
d k Z y d k l
Z
Wn e j
o d k l
Z
n Xe ƒ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d
e f d „ ƒ YZ d e f d
„ ƒ YZ d „ Z e i d e i ƒ Z d e f d „ ƒ YZ d e f d „ ƒ YZ e i d ƒ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( ( s stat( s times mktime( s parsedate( s timegmN( s Lockt Entryc B s t Z d Z d „ Z RS( s+ A cache entry, mostly an internal object. c C s/ t i | ƒ | | _ t | _ t ƒ | _ d S( N( t objectt __init__t selft keyt _keyt NOT_INITIALIZEDt _valuet Lockt _lock( R R ( ( t4 /usr/lib/python2.4/site-packages/mod_python/cache.pyR ) s
( t __name__t
__module__t __doc__R ( ( ( R
R ' s t Cachec B sª t Z d Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d
„ Z d „ Z d „ Z
d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s+ An abstract, multi-threaded cache object. i c C sj t i | ƒ | | _ h | _ t ƒ | _ | i o1 t d ƒ | _
| i
| i
_ | i
| i
_ n d S( sÚ Builds a cache with a limit of max_size entries.
If this limit is exceeded, the Least Recently Used entry is discarded.
if max_size==0, the cache is unbounded (no LRU rule is applied).
N(
R R R t max_sizet _maxsizet _dictR R R t Nonet _headt _previoust _next( R R ( ( R
R 2 s
c C s^ | i | ƒ } | i | ƒ } | i i ƒ z | i | | ƒ | i ƒ Wd | i i
ƒ Xd S( s2 Populates the cache with a given name and value. N( R R t namet
_get_entryt entryR t acquiret _packt valuet committ release( R R R R R ( ( R
t __setitem__B s
c C s | i | ƒ d S( s= Gets a value from the cache, builds it if required.
i N( R t
_checkitemR ( R R ( ( R
t __getitem__O s c C s? | i i ƒ z | i | ƒ } | i | =Wd | i i ƒ Xd S( N( R R R R R R R ( R R R ( ( R
t __delitem__T s
c C s° | i i ƒ zŽ | i i | ƒ } | pR t | ƒ } | | i | <| i o+ d | _
| _ | i | ƒ | i
ƒ q– n | i o | i | ƒ n | SWd | i i ƒ Xd S( N( R R R R t getR R R R R R R t _accesst _checklruR ( R R R ( ( R
R \ s
c C s% | i | ƒ } | i | ƒ } | i i ƒ zå | i | ƒ } t } | t j oQ | i | | | ƒ } | i | | | | ƒ } t } | i | | ƒ | i ƒ n_ | i | | | ƒ } | d j o<