darmiel / yaxc Goto Github PK
View Code? Open in Web Editor NEWYet Another Cross Clipboard
Home Page: https://yaxc.d2a.io
License: Apache License 2.0
Yet Another Cross Clipboard
Home Page: https://yaxc.d2a.io
License: Apache License 2.0
DBUG | SetHash ( helloworld , 8a6a8d0bd78b0da907b091a755e69f61 , 1m0s )
DBUG | get ( hash::helloworld ) = 8a6a8d0bd78b0da907b091a755e69f61 , <nil>
DBUG | get ( hash::helloworld ) = 8a6a8d0bd78b0da907b091a755e69f61 , <nil>
DBUG | get ( hash::helloworld ) = orld8d0bd78b0da907b091a755e69f61 , <nil>
DBUG | get ( hash::helloworld ) = orld8d0bd78b0da907b091a755e69f61 , <nil>
-m
)GLOBAL FLAGS:
anywhere
key
(whitelist key) (#24)push
merge paste into push
FLAGS:
anywhere
*>secret
>ttl
base64
hash
gpg-sign
(#28)OTHER:
pull
merge get into pull
FLAGS:
anywhere
*>secret
>gpg-sign
(#28)OTHER:
watch
FLAGS:
anywhere
*>secret
>check-delay
base64
gpg-sign
(#28)no-pull
no-push
PARAMETERS:
base64
(#26)FLAGS:
enable-whitelist-key
(#24)Hi,
in response to your StackOverflow question and Data Race in Cache #8, see majodev/yaxc for a minimal reproduction test and fix.
TL;DR:
Go fiber zero allocation. The byte slice buffer that holds your strings path
and hash
which you got from ctx
is only valid within the handler. The key/values stored inside your cache map will change as these strings
are still based on this buffer that gets reused in each handler.
Either:
utils.ImmutableString
util (same as above)Immutable
config flag (perf penalty, no longer zero allocated context).A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.