# Share hash between session? I need ASP Application Obj?

**URL:** <https://www.ruby-forum.com/t/share-hash-between-session-i-need-asp-application-obj/147302>\
**Category:** Rails\
**Created:** [August 30, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/share-hash-between-session-i-need-asp-application-obj/147302 "2008-08-30T17:48:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrpete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Post date:** [August 30, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/share-hash-between-session-i-need-asp-application-obj/147302/1 "2008-08-30T17:48:23Z")

</div>

Background: ASP has an Application[] collection that is shared across  
sessions.

How do you do that in RoR?

I need a mutex to read/write this as I need to share a hash across  
sessions.

Thanks in advance, Pete

---

<div class="post-metadata">

**Author:** ![mrpete](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Post date:** [August 31, 2008, 4:42am UTC](https://www.ruby-forum.com/t/share-hash-between-session-i-need-asp-application-obj/147302/2 "2008-08-31T04:42:30Z")

</div>

You can use Rails.cache facility that is now available as part of the  
Rails 2.1 release. Ryan B.’ screencast at  
[#115 Caching in Rails 2.1 - RailsCasts](http://railscasts.com/episodes/115-caching-in-rails-2-1) is an  
excellent overview

On Aug 30, 10:48 am, Peter A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
