Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
0a86a1d7
Commit
0a86a1d7
authored
Mar 14, 2019
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates old distcache names
parent
c001cfe1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
pkg/infra/remotecache/database_storage.go
+1
-1
pkg/infra/remotecache/database_storage_test.go
+1
-1
pkg/infra/remotecache/remotecache.go
+2
-2
No files found.
pkg/infra/remotecache/database_storage.go
View file @
0a86a1d7
...
...
@@ -18,7 +18,7 @@ type databaseCache struct {
func
newDatabaseCache
(
sqlstore
*
sqlstore
.
SqlStore
)
*
databaseCache
{
dc
:=
&
databaseCache
{
SQLStore
:
sqlstore
,
log
:
log
.
New
(
"
dist
cache.database"
),
log
:
log
.
New
(
"
remote
cache.database"
),
}
return
dc
...
...
pkg/infra/remotecache/database_storage_test.go
View file @
0a86a1d7
...
...
@@ -15,7 +15,7 @@ func TestDatabaseStorageGarbageCollection(t *testing.T) {
db
:=
&
databaseCache
{
SQLStore
:
sqlstore
,
log
:
log
.
New
(
"
dist
cache.database"
),
log
:
log
.
New
(
"
remote
cache.database"
),
}
obj
:=
&
CacheableStruct
{
String
:
"foolbar"
}
...
...
pkg/infra/remotecache/remotecache.go
View file @
0a86a1d7
...
...
@@ -31,8 +31,8 @@ func init() {
// CacheStorage allows the caller to set, get and delete items in the cache.
// Cached items are stored as byte arrays and marshalled using "encoding/gob"
// so any struct added to the cache needs to be registred with `
dist
cache.Register`
// ex `
dist
cache.Register(CacheableStruct{})``
// so any struct added to the cache needs to be registred with `
remote
cache.Register`
// ex `
remote
cache.Register(CacheableStruct{})``
type
CacheStorage
interface
{
// Get reads object from Cache
Get
(
key
string
)
(
interface
{},
error
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment