Flowdock
method

new

Importance_2
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: CGI::Session::MemCacheStore
  • 1.0.0
  • 1.1.6
  • 1.2.6
  • 2.0.3
  • 2.1.0 (0)
  • 2.2.1 (0)
  • 2.3.8
  • 3.0.0
  • 3.0.9
  • 3.1.0
  • 3.2.1
  • 3.2.8
  • 3.2.13
  • 4.0.2
  • 4.1.8
  • 4.2.1
  • 4.2.7
  • 4.2.9
  • 5.0.0.1
  • 5.1.7
  • 5.2.3
  • 6.0.0
  • 6.1.3.1
  • 6.1.7.7
  • 7.0.0
  • 7.1.3.2
  • What's this?

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

These similar methods exist in v6.1.7.7:

new(session, options = {}) public

Create a new CGI::Session::MemCache instance

This constructor is used internally by CGI::Session. The user does not generally need to call it directly.

session is the session for which this instance is being created. The session id must only contain alphanumeric characters; automatically generated session ids observe this requirement.

options is a hash of options for the initializer. The following options are recognized:

cache:an instance of a MemCache client to use as the
     session cache.
expires:an expiry time value to use for session entries in
    the session cache. +expires+ is interpreted in seconds
    relative to the current time if itÂ’s less than 60*60*24*30
    (30 days), or as an absolute Unix time (e.g., Time#to_i) if
    greater. If +expires+ is +0+, or not passed on +options+,
    the entry will never expire.

This session’s memcache entry will be created if it does not exist, or retrieved if it does.

Show source
Register or log in to add new notes.