app/models/switchman/shard.rb
# ten trillion possible ids per shard. yup.
ten trillion possible ids per shard. yup.
ten trillion possible ids per shard . yup .
def clear_cache
      Shard.default.activate do
        Switchman.cache.delete(['shard', id].join('/'))
        Switchman.cache.delete("default_shard") if default?
      end
    end
def clear_cache Shard . default . activate do Switchman . cache . delete ( [ 'shard' , id ] . join ( '/' ) ) Switchman . cache . delete ( "default_shard" ) if default? end end
ten trillion possible ids per shard.
ten trillion possible ids per shard .