lib/cachetastic_connection.rb in cachetastic-1.1.3 vs lib/cachetastic_connection.rb in cachetastic-1.1.8
- old
+ new
@@ -6,11 +6,11 @@
def initialize
self.connections = {}
end
- # Takes the name of the cache and returns back the store object associated with the cache.
- # If the store object doesn't exist of the the store is no longer valid a new one is
+ # Takes the name of the cache, that's been methodized, and returns back the store object associated with the cache.
+ # If the store object doesn't exist or if the store is no longer valid (store.valid?) a new one is
# created and returned.
def get(name)
name = name.to_sym
conn = self.connections[name]
return conn if conn && conn.valid?
\ No newline at end of file