sure, go ahead.

On 2013-09-16, at 05:13, Igor Stasenko <[email protected]> wrote:

> i would like session to support a cache.
> something like
> either:
> Smalltalk session at: x ifAbsentPut: [ y ]
> or
> Smalltalk session cacheAt: x ifAbsentPut: [ y ]
> 
> 
> 
> On 13 September 2013 17:27, Camillo Bruni <[email protected]> wrote:
> 
>> On 2013-09-13, at 12:09, Chris Cunningham <[email protected]> wrote:
>>> so, if this is a class, would Session be an appropriate superclass for a
>>> WebSession class?  or any other type of Session class?
>> 
>> I would say so. It is as generic as the name suggests. The class is
>> lightweight
>> and only contains the time when it was created.
>> 
>>> That particular
>>> name would seem to collide with other forms of Sessions, wouldn't it?  Or
>>> is this safely hidden in a Pharo Environment, so it won't collide
>> elsewhere
>>> (or entice other developers to try to use it for other Session style
>>> objects)?
>> 
>> It is a normal class, thus yes, collision is possible. Again, it can easily
>> serve as a superclass for other session-like objects.
>> 
> 
> 
> 
> -- 
> Best regards,
> Igor Stasenko.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to