CacheDictionary.st
changeset 538 9cffa21b8dd4
parent 499 d3814cbd1f90
child 910 af28d492d1eb
equal deleted inserted replaced
537:f413ab8fd1b5 538:9cffa21b8dd4
    39     only a limited number of elements.
    39     only a limited number of elements.
    40     It can be used as a cache, for keeping recently used objects alive.
    40     It can be used as a cache, for keeping recently used objects alive.
    41 
    41 
    42     [author:]
    42     [author:]
    43         Claus Gittinger
    43         Claus Gittinger
       
    44 "
       
    45 !
       
    46 
       
    47 examples
       
    48 "
       
    49     |d|
       
    50 
       
    51     d := CacheDictionary new:16.
       
    52     1 to:20 do:[:i |
       
    53 	d at:i printString put:i.
       
    54     ].
       
    55     21 to:40 do:[:i |
       
    56 	d at:i printString put:i.
       
    57     ].
       
    58     d inspect
    44 "
    59 "
    45 ! !
    60 ! !
    46 
    61 
    47 !CacheDictionary methodsFor:'private'!
    62 !CacheDictionary methodsFor:'private'!
    48 
    63 
   117 ! !
   132 ! !
   118 
   133 
   119 !CacheDictionary class methodsFor:'documentation'!
   134 !CacheDictionary class methodsFor:'documentation'!
   120 
   135 
   121 version
   136 version
   122     ^ '$Header: /cvs/stx/stx/libbasic2/CacheDictionary.st,v 1.17 1997-03-01 00:00:33 cg Exp $'
   137     ^ '$Header: /cvs/stx/stx/libbasic2/CacheDictionary.st,v 1.18 1997-06-24 17:42:44 cg Exp $'
   123 ! !
   138 ! !