Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0c2fedc0
Commit
0c2fedc0
authored
Nov 26, 2019
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused method for retreiving single entries from cache
parent
82e3c537
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
lib/gitlab/diff/highlight_cache.rb
lib/gitlab/diff/highlight_cache.rb
+0
-6
spec/lib/gitlab/diff/highlight_cache_spec.rb
spec/lib/gitlab/diff/highlight_cache_spec.rb
+0
-16
No files found.
lib/gitlab/diff/highlight_cache.rb
View file @
0c2fedc0
...
...
@@ -74,12 +74,6 @@ module Gitlab
end
end
def
read_single_entry_from_redis_hash
(
diff_file_id
)
Redis
::
Cache
.
with
do
|
redis
|
redis
.
hget
(
key
,
diff_file_id
)
end
end
def
clear
Redis
::
Cache
.
with
do
|
redis
|
redis
.
del
(
key
)
...
...
spec/lib/gitlab/diff/highlight_cache_spec.rb
View file @
0c2fedc0
...
...
@@ -93,22 +93,6 @@ describe Gitlab::Diff::HighlightCache, :clean_gitlab_redis_cache do
end
end
describe
'#read_single_entry_from_redis_hash'
do
let
(
:backend
)
{
Rails
.
cache
}
before
do
cache
.
write_to_redis_hash
(
diff_hash
)
end
it
'returns highlighted diff content for a single file as JSON'
do
diff_hash
.
each
do
|
file_path
,
value
|
found
=
cache
.
read_single_entry_from_redis_hash
(
file_path
)
expect
(
found
).
to
eq
(
value
.
to_json
)
end
end
end
describe
'#clear'
do
let
(
:backend
)
{
double
(
'backend'
).
as_null_object
}
...
...
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