mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-12 05:32:36 +00:00
fixup! New release.
This commit is contained in:
Vendored
+3
-12
@@ -77,9 +77,6 @@ func EnableCache(cfg *CacheConfig) {
|
|||||||
|
|
||||||
func CacheLookup(hash string) []byte {
|
func CacheLookup(hash string) []byte {
|
||||||
if !IsCacheInitialized() {
|
if !IsCacheInitialized() {
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
|
||||||
Message: "Cache not initialized",
|
|
||||||
})
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,9 +113,6 @@ func CacheLookup(hash string) []byte {
|
|||||||
|
|
||||||
func CacheDelete(hash string) {
|
func CacheDelete(hash string) {
|
||||||
if !IsCacheInitialized() {
|
if !IsCacheInitialized() {
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
|
||||||
Message: "Cache not initialized",
|
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
config.Logger.Debug(&libpack_logger.LogMessage{
|
||||||
@@ -146,9 +140,6 @@ func CacheStore(hash string, data []byte) {
|
|||||||
|
|
||||||
func CacheStoreWithTTL(hash string, data []byte, ttl time.Duration) {
|
func CacheStoreWithTTL(hash string, data []byte, ttl time.Duration) {
|
||||||
if !IsCacheInitialized() {
|
if !IsCacheInitialized() {
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
|
||||||
Message: "Cache not initialized",
|
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
config.Logger.Debug(&libpack_logger.LogMessage{
|
||||||
@@ -161,9 +152,6 @@ func CacheStoreWithTTL(hash string, data []byte, ttl time.Duration) {
|
|||||||
|
|
||||||
func CacheGetQueries() int64 {
|
func CacheGetQueries() int64 {
|
||||||
if !IsCacheInitialized() {
|
if !IsCacheInitialized() {
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
|
||||||
Message: "Cache not initialized",
|
|
||||||
})
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
config.Logger.Debug(&libpack_logger.LogMessage{
|
||||||
@@ -178,6 +166,9 @@ func CacheClear() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetCacheStats() *CacheStats {
|
func GetCacheStats() *CacheStats {
|
||||||
|
if !IsCacheInitialized() {
|
||||||
|
return &CacheStats{}
|
||||||
|
}
|
||||||
config.Logger.Debug(&libpack_logger.LogMessage{
|
config.Logger.Debug(&libpack_logger.LogMessage{
|
||||||
Message: "Getting cache stats",
|
Message: "Getting cache stats",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user