benhutton-libmemcached_store 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,6 +44,15 @@ begin
44
44
  return false
45
45
  end
46
46
 
47
+ def destroy(env)
48
+ if sid = current_session_id(env)
49
+ @pool.delete(sid)
50
+ end
51
+ rescue Memcached::Error => e
52
+ log_error(e)
53
+ return false
54
+ end
55
+
47
56
  def log_error(exception)
48
57
  logger ||= RAILS_DEFAULT_LOGGER
49
58
  logger.error "MemcachedError (#{exception.inspect}): #{exception.message}" if logger && !@logger_off
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{benhutton-libmemcached_store}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Hutton", "Jeffrey Hardy"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben Hutton