lib/perobs/Cache.rb in perobs-3.0.1 vs lib/perobs/Cache.rb in perobs-3.0.2
- old
+ new
@@ -35,11 +35,11 @@
# It also stores a list of objects that haven't been synced to the
# permanent store yet to accelerate object writes.
class Cache
# Create a new Cache object.
- # @param bits [Fixnum] Number of bits for the cache index. This parameter
+ # @param bits [Integer] Number of bits for the cache index. This parameter
# heavilty affects the performance and memory consumption of the
# cache.
def initialize(bits = 16)
@bits = bits
# This mask is used to access the _bits_ least significant bits of the
@@ -92,10 +92,10 @@
end
end
end
# Return the PEROBS::Object with the specified ID or nil if not found.
- # @param id [Fixnum or Bignum] ID of the cached PEROBS::ObjectBase
+ # @param id [Integer] ID of the cached PEROBS::ObjectBase
#def object_by_id(id)
# idx = id & @mask
# # The index is just a hash. We still need to check if the object IDs are
# # actually the same before we can return the object.
# if (obj = @writes[idx]) && obj._id == id