Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
Koishi Plugin Cache Memcached
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
Koishi Plugin Cache Memcached
Commits
793c463f
Commit
793c463f
authored
Dec 05, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add constructor in config schema
parent
a49b4d07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/config.ts
src/config.ts
+7
-2
src/plugin.ts
src/plugin.ts
+1
-1
No files found.
src/config.ts
View file @
793c463f
...
...
@@ -4,7 +4,11 @@ import { RegisterSchema, DefineSchema } from 'schemastery-gen';
@
RegisterSchema
()
export
class
MemcachedCachePluginConfig
{
@
DefineSchema
({
description
:
'
Memcached 服务器地址
'
,
default
:
'
localhost:11211
'
})
constructor
(
config
:
Partial
<
MemcachedCachePluginConfig
>
)
{}
@
DefineSchema
({
description
:
'
Memcached 服务器地址
'
,
default
:
'
localhost:11211
'
,
})
endpoint
:
string
;
@
DefineSchema
({
...
...
@@ -17,4 +21,5 @@ export class MemcachedCachePluginConfig {
prefix
:
string
;
}
export
type
MemcachedCachePluginConfigLike
=
Partial
<
MemcachedCachePluginConfig
>
;
export
type
MemcachedCachePluginConfigLike
=
Partial
<
MemcachedCachePluginConfig
>
;
src/plugin.ts
View file @
793c463f
...
...
@@ -11,7 +11,7 @@ import * as EncodeBuffer from 'encoded-buffer';
export
default
class
MemcachedCache
extends
Cache
{
static
schema
=
MemcachedCachePluginConfig
;
protected
start
():
void
|
Promise
<
void
>
{}
protected
stop
():
void
|
Promise
<
void
>
{}
private
logger
=
new
Logger
(
'
memcached
'
);
...
...
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