Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit e950bc8

Browse files
committed
add template for Caching Strategy
1 parent d73a797 commit e950bc8

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

lib/github-api-client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
require 'core_ext/habtm'
1313
require 'rainbow'
1414
require 'github-api-client/config'
15+
require 'github-api-client/strategy'
1516

1617
require 'github-api-client/base'
1718
#require 'github-api-client/user'

lib/github-api-client/strategy.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module GitHub
2+
class CachingStrategyNotImplemented < StandardError; end
3+
# Template
4+
module CachingStrategy
5+
def should_refresh?(model)
6+
throw CachingStrategyNotImplemented
7+
end
8+
9+
def update_strategy(model)
10+
throw CachingStrategyNotImplemented
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)