Permalink
Browse files

devel version 0.2509

  • Loading branch information...
1 parent eb0122f commit 8fe7022a00bf0197806f8cae6e25b72de0629e90 @Perlover committed Mar 20, 2012
Showing with 24 additions and 27 deletions.
  1. +5 −21 Changes
  2. +1 −1 META.yml
  3. +1 −1 MYMETA.json
  4. +1 −1 MYMETA.yml
  5. +3 −3 lib/CHI/Cascade.pm
  6. +13 −0 lib/CHI/Cascade/Value.pm
View
26 Changes
@@ -1,33 +1,17 @@
-0.2507
- *) The code of 'forking' was deleted. New conception - 'defer' callback
-
-0.2506
- *) The code cleaned from any queueing. I think the best concept for non
- blocking 'run' will be forking.
-
-0.2505
- +) Other conception without queueing - forking. Now we can have non blocked
- 'run' method (targets are not recomputed immediately). Instead the target
- of 'run' is recomputed in other process (in child by fork) but the 'run'
- of parent returns value from cache immediately.
-
-0.2504
+NEXT (0.26)
+ *) New conception of non-blocking run method - deferring
*) The test 04_memcached_multi.t some fails in FreeBSD. May be this is
because 'sleep' works not as expected. I changed the 'sleep' to
'select($,$,$,$)'. May be it will improve this test at FreeBSD...
-
-0.2503
+) Added CHI::Cascade::Rule::value_expires method for changing by recompute
code the expiration time of values & target markers (no docs yet)
+) Added test for value_expires - test_05.pm by 08_fast_mmap.t
*) Fixed bugs - in tests *_fast_mmap.t if was ^C signal - files of FastMmap
driver were not deleted
-
-0.2502
- *) The 'bits' method of CHI::Cascade::Value is now renamed to 'state' (no
- docs yet)
+ *) The new method CHI::Cascade::Value->state (no docs yet)
+) Added method CHI::Cascade::Value::state_as_str (no docs yet)
- *) The test '07_fast_mmap.t' tests now queue & states of values
+ *) The test '07_fast_mmap.t' tests now deferring & states of values
+ *) Fix few bug with target locking
0.25
+) Some improvements
View
@@ -29,4 +29,4 @@ requires:
resources:
license: http://dev.perl.org/licenses/
repository: git://github.com/Perlover/CHI-Cascade.git
-version: 0.2508
+version: 0.2509
View
@@ -51,5 +51,5 @@
"url" : "git://github.com/Perlover/CHI-Cascade.git"
}
},
- "version" : "0.2508"
+ "version" : "0.2509"
}
View
@@ -28,4 +28,4 @@ requires:
resources:
license: http://dev.perl.org/licenses/
repository: git://github.com/Perlover/CHI-Cascade.git
-version: 0.2508
+version: 0.2509
View
@@ -3,7 +3,7 @@ package CHI::Cascade;
use strict;
use warnings;
-our $VERSION = 0.2508;
+our $VERSION = 0.2509;
use Carp;
@@ -100,9 +100,9 @@ sub target_unlock {
$trg_obj->unlock;
$trg_obj->touch if $value && $value->recomputed;
$self->{target_chi}->set( "t:$target", $trg_obj, $rule->value_expires );
-
- delete $self->{target_locks}{$target};
}
+
+ delete $self->{target_locks}{$target};
}
sub target_remove {
View
@@ -176,8 +176,21 @@ First version returns a value, second sets a value and returns C<$value>.
returns C<true> if value was set by L</value> method or C<false> else.
+=item state
+
+ use CHI::Cascade::Value ':state';
+ $state_bits = $value->state;
+ $value = $value->state( CASCADE_* );
+
+A getting or setting of state bits of value object.
+
=back
+=head1 STATE BITS
+
+Since version 0.26 the CHI::Cascade introduces the concept of state bits. An
+every value object (even which has not valid value) has a history described by state bits. To use this bit mask we can know how this value was gotten.
+
=head1 AUTHOR
This module has been written by Perlover <perlover@perlover.com>

0 comments on commit 8fe7022

Please sign in to comment.