Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-11-25 16:05:59 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-11-25 16:05:59 +0300
commit026b0df87d65e2219c8ce4a507dfe3b59258003a (patch)
tree7b6814710a9b8da2fd9927f0012e0e60b420fd22 /internal/source/gitlab/cache/cache.go
parent2ac77b951abec0fd3c1589f645061e277ae21395 (diff)
Move gitlab source client and cache to separate packages
Diffstat (limited to 'internal/source/gitlab/cache/cache.go')
-rw-r--r--internal/source/gitlab/cache/cache.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/source/gitlab/cache/cache.go b/internal/source/gitlab/cache/cache.go
new file mode 100644
index 00000000..cd95c82f
--- /dev/null
+++ b/internal/source/gitlab/cache/cache.go
@@ -0,0 +1,10 @@
+package cache
+
+// Cache is a short and long caching mechanism for GitLab source
+type Cache struct {
+}
+
+// NewCache creates a new instance of Cache and sets default expiration
+func NewCache() *Cache {
+ return &Cache{}
+}