Skip to content

Commit

Permalink
Merge pull request #21 from TencentBlueKing/develop
Browse files Browse the repository at this point in the history
v1.0.5
  • Loading branch information
wklken committed Dec 21, 2021
2 parents 3497cf2 + 59adfda commit ec4f4b6
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.4
1.0.5
2 changes: 1 addition & 1 deletion cache/memory/base_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache
package memory

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cache/memory/base_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache
package memory

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion cache/memory/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache
package memory

import (
"time"
Expand Down
2 changes: 1 addition & 1 deletion cache/memory/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache
package memory

import (
"time"
Expand Down
2 changes: 1 addition & 1 deletion cache/memory/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache
package memory

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion cache/memory/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache
package memory

import (
. "github.com/onsi/ginkgo"
Expand Down
2 changes: 1 addition & 1 deletion cache/memory/memory_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache_test
package memory_test

import (
"testing"
Expand Down
4 changes: 2 additions & 2 deletions cache/memory/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func main() {
nil)

// 4. use it
k := cache.NewStringKey("hello")
k := memory.NewStringKey("hello")

data, err := c.Get(k)
fmt.Println("err == nil: ", err == nil)
Expand Down Expand Up @@ -90,7 +90,7 @@ func RetrieveExample(inKey memory.Key) (interface{}, error) {

func main() {
// 3. new a cache
c := cache.NewCache(
c := memory.NewCache(
"example",
false,
RetrieveExample,
Expand Down
2 changes: 1 addition & 1 deletion cache/memory/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* specific language governing permissions and limitations under the License.
*/

package cache
package memory

import (
"time"
Expand Down
4 changes: 4 additions & 0 deletions release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
版本日志
================
## v1.0.5

- bugfix: cache/memory package name wrong

## v1.0.4

- add pkg: cache/memory
Expand Down

0 comments on commit ec4f4b6

Please sign in to comment.