Sha256: 7c540c38c38d4e5487b1a176710017a043c08359680a2b4df3e2ee979d889375

Contents?: true

Size: 424 Bytes

Versions: 3

Compression:

Stored size: 424 Bytes

Contents

require "redis"

require "foobara/all"

module Foobara
  class RedisCrudDriver < Persistence::EntityAttributesCrudDriver
    class << self
      def reset_all
        if instance_variable_defined?(:@redis)
          # TODO: protect against this in production
          redis.flushdb
          remove_instance_variable(:@redis)
        end
      end
    end
  end
end

Foobara::Util.require_directory("#{__dir__}/../../src")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foobara-redis-crud-driver-0.0.3 lib/foobara/redis_crud_driver.rb
foobara-redis-crud-driver-0.0.2 lib/foobara/redis_crud_driver.rb
foobara-redis-crud-driver-0.0.1 lib/foobara/redis_crud_driver.rb