#NEWLINE# def __init__( self , table , params ) : #NEWLINE# #INDENT# BaseCache . __init__ ( self , params ) #NEWLINE# self . _table = max_entries #NEWLINE# max_entries = params . get ( 'max_entries' , 300 ) #NEWLINE# try : #NEWLINE# #INDENT# self . _max_entries = int ( max_entries ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError ) : #NEWLINE# #INDENT# self . _max_entries = 300 #NEWLINE# #UNINDENT# cull_frequency = params . get ( 'cull_frequency' , 3 ) #NEWLINE# try : #NEWLINE# #INDENT# self . _cull_frequency = int ( cull_frequency ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError ) : #NEWLINE# #INDENT# self . _cull_frequency = 3