lib/ratelimit/bucketbased.rb
def get(name)
			value = @cache.get(name)
			return nil unless value
			row = value.split(/\|/)
			bucket = nil
			if row
				bucket = Bucket.new(row[0],*row[1,8].map{|x| x.to_f})
			end
			bucket
		end
def get(name)
			value = @cache.get(name)
			return nil unless value
			row = value.split(/\|/)
			bucket = nil
			if row
				bucket = Bucket.new(row[0],*row[1,8].map{|x| x.to_f})
			end
			bucket
		end
def get ( name ) value = @cache . get ( name ) return nil unless value row = value . split ( / \| / ) bucket = nil if row bucket = Bucket . new ( row [ 0 ] , row [ 1 , 8 ] . map { | x | x . to_f } ) end bucket end
retrieves a named bucket
 * *Args*    :
   - +name+ -> the name of the bucket to be retrieved
 * *Returns* :
   - the bucket matching the name if found, nil otherwise
retrieves a named bucket * * Args * : - + name + - > the name of the bucket to be retrieved * * Returns * : - the bucket matching the name if found nil otherwise