Skip to content

Commit

Permalink
don't cache k/v values between runs
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyhightower committed Dec 9, 2014
1 parent 195e192 commit a63f8f9
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Godeps/_workspace/src/github.com/kelseyhightower/memkv/store.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Godeps/_workspace/src/github.com/kelseyhightower/memkv/store_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions resource/template/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (t *TemplateResource) setVars() error {
if err != nil {
return err
}
t.store.Purge()
for k, v := range result {
t.store.Set(filepath.Join("/", strings.TrimPrefix(k, t.prefix)), v)
}
Expand Down

0 comments on commit a63f8f9

Please sign in to comment.