Stage 1 of caching layer. Framework (#6693)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
28bf900205
Коммит
9659a6da06
@@ -17,7 +17,7 @@ import (
|
||||
)
|
||||
|
||||
type SqlPostStore struct {
|
||||
*SqlStore
|
||||
SqlStore
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -36,7 +36,7 @@ func ClearPostCaches() {
|
||||
lastPostsCache.Purge()
|
||||
}
|
||||
|
||||
func NewSqlPostStore(sqlStore *SqlStore) PostStore {
|
||||
func NewSqlPostStore(sqlStore SqlStore) PostStore {
|
||||
s := &SqlPostStore{sqlStore}
|
||||
|
||||
for _, db := range sqlStore.GetAllConns() {
|
||||
|
||||
Ссылка в новой задаче
Block a user