Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMCache
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMCache
Commits
c48f6c01
Commit
c48f6c01
authored
May 26, 2018
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正错别字
parent
21a21fcd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
16 deletions
+24
-16
IDEWorkspaceChecks.plist
...GMCache.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+8
-0
GMCache.h
GMCache/Classes/GMCache.h
+8
-8
GMCache.m
GMCache/Classes/GMCache.m
+8
-8
No files found.
Example/GMCache.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
0 → 100644
View file @
c48f6c01
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
IDEDidComputeMac32BitWarning
<
/k
e
y
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/plist
>
GMCache/Classes/GMCache.h
View file @
c48f6c01
...
...
@@ -61,21 +61,21 @@
+
(
void
)
removeAllObjectsAtMemory
;
#pragma mark - 这里将数据缓存到Ducument目录下。异步
+
(
void
)
storeObjectAtD
uc
mentPathWithkey
:(
NSString
*
)
key
+
(
void
)
storeObjectAtD
ocu
mentPathWithkey
:(
NSString
*
)
key
object
:(
id
<
NSCoding
>
)
object
block
:(
TMDiskCacheObjectBlock
)
block
;
+
(
void
)
fetchObjectAtD
uc
mentPathWithkey
:(
NSString
*
)
key
+
(
void
)
fetchObjectAtD
ocu
mentPathWithkey
:(
NSString
*
)
key
block
:(
TMDiskCacheObjectBlock
)
block
;
+
(
void
)
removeObjectAtD
uc
mentPathWithkey
:(
NSString
*
)
key
+
(
void
)
removeObjectAtD
ocu
mentPathWithkey
:(
NSString
*
)
key
block
:(
TMDiskCacheObjectBlock
)
block
;
+
(
void
)
removeAllObjectsAtD
uc
mentPathWithBlock
:(
TMDiskCacheBlock
)
block
;
+
(
void
)
removeAllObjectsAtD
ocu
mentPathWithBlock
:(
TMDiskCacheBlock
)
block
;
#pragma mark - 这里将数据缓存到Ducument目录下。同步内存读写操作
+
(
void
)
storeObjectAtD
uc
mentPathWithkey
:(
NSString
*
)
key
+
(
void
)
storeObjectAtD
ocu
mentPathWithkey
:(
NSString
*
)
key
object
:(
id
<
NSCoding
>
)
object
;
+
(
id
)
fetchObjectAtD
uc
mentPathWithkey
:(
NSString
*
)
key
;
+
(
void
)
removeObjectAtD
uc
mentPathWithkey
:(
NSString
*
)
key
;
+
(
void
)
removeAllObjectsAtD
uc
mentPath
;
+
(
id
)
fetchObjectAtD
ocu
mentPathWithkey
:(
NSString
*
)
key
;
+
(
void
)
removeObjectAtD
ocu
mentPathWithkey
:(
NSString
*
)
key
;
+
(
void
)
removeAllObjectsAtD
ocu
mentPath
;
@end
GMCache/Classes/GMCache.m
View file @
c48f6c01
...
...
@@ -75,40 +75,40 @@
[[
TMCache
sharedCache
].
memoryCache
removeAllObjects
];
}
+
(
void
)
storeObjectAtD
uc
mentPathWithkey
:
(
NSString
*
)
key
+
(
void
)
storeObjectAtD
ocu
mentPathWithkey
:
(
NSString
*
)
key
object
:
(
id
<
NSCoding
>
)
object
block
:
(
TMDiskCacheObjectBlock
)
block
{
[[
WMDocumentCache
sharedCache
].
diskCache
setObject
:
object
forKey
:
key
block
:
block
];
}
+
(
void
)
fetchObjectAtD
uc
mentPathWithkey
:
(
NSString
*
)
key
+
(
void
)
fetchObjectAtD
ocu
mentPathWithkey
:
(
NSString
*
)
key
block
:
(
TMDiskCacheObjectBlock
)
block
{
[[
WMDocumentCache
sharedCache
].
diskCache
objectForKey
:
key
block
:
block
];
}
+
(
void
)
removeObjectAtD
uc
mentPathWithkey
:
(
NSString
*
)
key
+
(
void
)
removeObjectAtD
ocu
mentPathWithkey
:
(
NSString
*
)
key
block
:
(
TMDiskCacheObjectBlock
)
block
{
[[
WMDocumentCache
sharedCache
].
diskCache
removeObjectForKey
:
key
block
:
block
];
}
+
(
void
)
removeAllObjectsAtD
uc
mentPathWithBlock
:
(
TMDiskCacheBlock
)
block
{
+
(
void
)
removeAllObjectsAtD
ocu
mentPathWithBlock
:
(
TMDiskCacheBlock
)
block
{
[[
WMDocumentCache
sharedCache
].
diskCache
removeAllObjects
:
block
];
}
+
(
void
)
storeObjectAtD
uc
mentPathWithkey
:
(
NSString
*
)
key
+
(
void
)
storeObjectAtD
ocu
mentPathWithkey
:
(
NSString
*
)
key
object
:
(
id
<
NSCoding
>
)
object
{
[[
WMDocumentCache
sharedCache
].
diskCache
setObject
:
object
forKey
:
key
];
}
+
(
id
)
fetchObjectAtD
uc
mentPathWithkey
:
(
NSString
*
)
key
{
+
(
id
)
fetchObjectAtD
ocu
mentPathWithkey
:
(
NSString
*
)
key
{
return
[[
WMDocumentCache
sharedCache
].
diskCache
objectForKey
:
key
];
}
+
(
void
)
removeObjectAtD
uc
mentPathWithkey
:
(
NSString
*
)
key
{
+
(
void
)
removeObjectAtD
ocu
mentPathWithkey
:
(
NSString
*
)
key
{
[[
WMDocumentCache
sharedCache
].
diskCache
removeObjectForKey
:
key
];
}
+
(
void
)
removeAllObjectsAtD
uc
mentPath
{
+
(
void
)
removeAllObjectsAtD
ocu
mentPath
{
[[
WMDocumentCache
sharedCache
].
diskCache
removeAllObjects
];
}
...
...
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