Class: ODBA::CacheStub

Inherits:
Object show all
Defined in:
test/stub/odba.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) retrieve_from_index(*args)



15
16
17
# File 'test/stub/odba.rb', line 15

def retrieve_from_index(*args)
  @retrieve_from_index || []
end

Instance Method Details

- (Object) bulk_fetch(*args)



20
21
22
# File 'test/stub/odba.rb', line 20

def bulk_fetch(*args)
  []
end

- (Object) delete(anything)



9
10
# File 'test/stub/odba.rb', line 9

def delete(anything)
end

- (Object) ensure_index_deferred(*args)



11
12
# File 'test/stub/odba.rb', line 11

def ensure_index_deferred *args
end

- (Object) fetch_named(*argsm, &block)



23
24
25
# File 'test/stub/odba.rb', line 23

def fetch_named(*argsm, &block)
  block.call
end

- (Object) next_id



26
27
28
# File 'test/stub/odba.rb', line 26

def next_id
  ODBA.storage.next_id
end

- (Object) prefetch



18
19
# File 'test/stub/odba.rb', line 18

def prefetch
end

- (Object) store(anything)



13
14
# File 'test/stub/odba.rb', line 13

def store(anything)
end